# HG changeset patch # User Siddharth Agarwal # Date 1410910521 25200 # Node ID df6cb54604eb1df3890562d3b3f90f3c7000bc16 # Parent eecfbd1fac0a954797cecc66445b7096da234df7 replay: use compat hack for filectxfn for deleted files diff --git a/hgsubversion/replay.py b/hgsubversion/replay.py --- 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: