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