# HG changeset patch # User Eugene Baranov # Date 1435943458 -3600 # Node ID 501c51d607922692bd6654cb3c24d9f1e31d7450 # Parent 97fd07e38b83f270a111b86d4bec75040c148997 convert: handle deleted files when converting from Perforce (issue4743) diff -r 97fd07e38b83 -r 501c51d60792 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: