convert: handle deleted files when converting from Perforce (issue4743) stable
authorEugene Baranov <eug.baranov@gmail.com>
Fri, 03 Jul 2015 18:10:58 +0100
branchstable
changeset 25745 501c51d60792
parent 25715 97fd07e38b83
child 25760 648323f41a89
child 25855 96a38d44ba09
convert: handle deleted files when converting from Perforce (issue4743)
hgext/convert/p4.py
--- a/hgext/convert/p4.py	Fri Jul 03 18:10:58 2015 +0100
+++ b/hgext/convert/p4.py	Fri Jul 03 18:10:58 2015 +0100
@@ -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: