Show More
@@ -221,6 +221,8 b' def generatev1(repo):' | |||
|
221 | 221 | repo.ui.debug('sending %s (%d bytes)\n' % (name, size)) |
|
222 | 222 | # partially encode name over the wire for backwards compat |
|
223 | 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 | 226 | with svfs(name, 'rb', auditpath=False) as fp: |
|
225 | 227 | if size <= 65536: |
|
226 | 228 | yield fp.read(size) |
General Comments 0
You need to be logged in to leave comments.
Login now