changeset 1242:df6cb54604eb

replay: use compat hack for filectxfn for deleted files
author Siddharth Agarwal <sid0@fb.com>
date Tue, 16 Sep 2014 16:35:21 -0700
parents eecfbd1fac0a
children 3606aff13a22
files hgsubversion/replay.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/replay.py
+++ b/hgsubversion/replay.py
@@ -147,7 +147,10 @@ def _convert_rev(ui, meta, svn, r, tbdel
 
         def filectxfn(repo, memctx, path):
             current_file = files[path]
-            data, isexec, islink, copied = current.pop(current_file)
+            try:
+                data, isexec, islink, copied = current.pop(current_file)
+            except IOError:
+                return compathacks.filectxfn_deleted_reraise(memctx)
             if isexec is None or islink is None:
                 flags = parentctx.flags(path)
                 if isexec is None: