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