Show More
@@ -221,6 +221,8 b' def generatev1(repo):' | |||||
221 | repo.ui.debug('sending %s (%d bytes)\n' % (name, size)) |
|
221 | repo.ui.debug('sending %s (%d bytes)\n' % (name, size)) | |
222 | # partially encode name over the wire for backwards compat |
|
222 | # partially encode name over the wire for backwards compat | |
223 | yield '%s\0%d\n' % (store.encodedir(name), size) |
|
223 | yield '%s\0%d\n' % (store.encodedir(name), size) | |
|
224 | # auditing at this stage is both pointless (paths are already | |||
|
225 | # trusted by the local repo) and expensive | |||
224 | with svfs(name, 'rb', auditpath=False) as fp: |
|
226 | with svfs(name, 'rb', auditpath=False) as fp: | |
225 | if size <= 65536: |
|
227 | if size <= 65536: | |
226 | yield fp.read(size) |
|
228 | yield fp.read(size) |
General Comments 0
You need to be logged in to leave comments.
Login now