[PATCH] convert: handle deleted files when converting from Perforce (issue4743)
Eugene Baranov
eug.baranov at gmail.com
Mon Jul 6 05:00:24 CDT 2015
# HG changeset patch
# User Eugene Baranov <eug.baranov at gmail.com>
# Date 1435943458 -3600
# Fri Jul 03 18:10:58 2015 +0100
# Branch stable
# Node ID b3db00879bbc85d1946d49c5df7832578efeb86e
# Parent 6047b60cdd0984b60191bdb3b272d87c2691ffe4
convert: handle deleted files when converting from Perforce (issue4743)
diff --git a/hgext/convert/p4.py b/hgext/convert/p4.py
--- a/hgext/convert/p4.py
+++ b/hgext/convert/p4.py
@@ -164,7 +164,8 @@
raise IOError(d["generic"], data)
elif code == "stat":
- if d.get("action") == "purge":
+ action = d.get("action")
+ if action in ["purge", "delete", "move/delete"]:
return None, None
p4type = self.re_type.match(d["type"])
if p4type:
More information about the Mercurial-devel
mailing list