Mercurial > hg-stable
changeset 25668:1c2df7c91cf2
exchange: replace references to 'sopener' with 'svfs'
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Thu, 25 Jun 2015 22:18:56 -0700 |
parents | a69bb29b9638 |
children | 8d94861842e5 |
files | mercurial/exchange.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/exchange.py Thu Jun 25 22:17:52 2015 -0700 +++ b/mercurial/exchange.py Thu Jun 25 22:18:56 2015 -0700 @@ -1484,10 +1484,10 @@ (len(entries), total_bytes)) yield '%d %d\n' % (len(entries), total_bytes) - sopener = repo.svfs - oldaudit = sopener.mustaudit + svfs = repo.svfs + oldaudit = svfs.mustaudit debugflag = repo.ui.debugflag - sopener.mustaudit = False + svfs.mustaudit = False try: for name, size in entries: @@ -1496,17 +1496,17 @@ # partially encode name over the wire for backwards compat yield '%s\0%d\n' % (store.encodedir(name), size) if size <= 65536: - fp = sopener(name) + fp = svfs(name) try: data = fp.read(size) finally: fp.close() yield data else: - for chunk in util.filechunkiter(sopener(name), limit=size): + for chunk in util.filechunkiter(svfs(name), limit=size): yield chunk finally: - sopener.mustaudit = oldaudit + svfs.mustaudit = oldaudit def consumestreamclone(repo, fp): """Apply the contents from a streaming clone file.