Show More
@@ -555,8 +555,11 b' def stream(repo, proto):' | |||||
555 | repo.ui.debug('sending %s (%d bytes)\n' % (name, size)) |
|
555 | repo.ui.debug('sending %s (%d bytes)\n' % (name, size)) | |
556 | # partially encode name over the wire for backwards compat |
|
556 | # partially encode name over the wire for backwards compat | |
557 | yield '%s\0%d\n' % (store.encodedir(name), size) |
|
557 | yield '%s\0%d\n' % (store.encodedir(name), size) | |
558 | for chunk in util.filechunkiter(sopener(name), limit=size): |
|
558 | if size <= 65536: | |
559 |
yield |
|
559 | yield sopener(name).read(size) | |
|
560 | else: | |||
|
561 | for chunk in util.filechunkiter(sopener(name), limit=size): | |||
|
562 | yield chunk | |||
560 | finally: |
|
563 | finally: | |
561 | sopener.mustaudit = oldaudit |
|
564 | sopener.mustaudit = oldaudit | |
562 |
|
565 |
@@ -6,6 +6,10 b'' | |||||
6 | > exit 80 |
|
6 | > exit 80 | |
7 | > fi |
|
7 | > fi | |
8 | $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!' |
|
8 | $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!' | |
|
9 | mercurial/wireproto.py:560: | |||
|
10 | > yield sopener(name).read(size) | |||
|
11 | use opener.read() instead | |||
|
12 | FAILURE IS NOT AN OPTION!!! | |||
9 |
|
13 | |||
10 | $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 || true |
|
14 | $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 || true | |
11 | hgext/convert/cvsps.py:0: |
|
15 | hgext/convert/cvsps.py:0: | |
@@ -159,6 +163,9 b'' | |||||
159 | mercurial/commands.py:0: |
|
163 | mercurial/commands.py:0: | |
160 | > ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no')) |
|
164 | > ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no')) | |
161 | warning: unwrapped ui message |
|
165 | warning: unwrapped ui message | |
|
166 | mercurial/wireproto.py:0: | |||
|
167 | > yield sopener(name).read(size) | |||
|
168 | use opener.read() instead | |||
162 | tests/autodiff.py:0: |
|
169 | tests/autodiff.py:0: | |
163 | > ui.write('data lost for: %s\n' % fn) |
|
170 | > ui.write('data lost for: %s\n' % fn) | |
164 | warning: unwrapped ui message |
|
171 | warning: unwrapped ui message |
General Comments 0
You need to be logged in to leave comments.
Login now