From patchwork Mon Jul 6 10:00:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: convert: handle deleted files when converting from Perforce (issue4743) From: Eugene Baranov X-Patchwork-Id: 9894 Message-Id: To: mercurial-devel@selenic.com Date: Mon, 6 Jul 2015 11:00:24 +0100 # HG changeset patch # User Eugene Baranov # 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: