Mercurial > hg
diff hgext/convert/p4.py @ 25745:501c51d60792 stable
convert: handle deleted files when converting from Perforce (issue4743)
author | Eugene Baranov <eug.baranov@gmail.com> |
---|---|
date | Fri, 03 Jul 2015 18:10:58 +0100 |
parents | 216fa1ba9993 |
children | 648323f41a89 |
line wrap: on
line diff
--- 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: