# HG changeset patch # User Patrick Mezard # Date 1227626308 21600 # Node ID a8950157281a80906a98d5b3fb12a910538f01e8 # Parent 122b6037e5f9c9326d11325d6bee22c1a0ff18b9 fetch_command: use the opener to read touched files diff --git a/fetch_command.py b/fetch_command.py --- a/fetch_command.py +++ b/fetch_command.py @@ -474,17 +474,16 @@ def stupid_svn_server_pull_rev(ui, svn, def filectxfn(repo, memctx, path): if path in deleted_files: raise IOError() - disk_path = os.path.join(our_tempdir, path) if path in link_files: return context.memfilectx(path=path, data=link_files[path], islink=True, isexec=False, copied=False) - fp = open(disk_path) + data = opener(path).read() exe = exec_files.get(path, None) if exe is None and path in hg_editor.repo[parent_ha]: exe = 'x' in hg_editor.repo[parent_ha].filectx(path).flags() copied = copies.get(path) - return context.memfilectx(path=path, data=fp.read(), islink=False, + return context.memfilectx(path=path, data=data, islink=False, isexec=exe, copied=copied) except (core.SubversionException, BadPatchApply,