# HG changeset patch # User David Soria Parra # Date 2016-12-14 05:49:58 # Node ID b36a0fa7f9690b913a5a97b4b7c1f3d75df57554 # Parent d47a01bf00599b822b488a62277908fb9d5dd5f3 convert: do not provide head revisions if we have no changests to import Don't set a head revision in cases where we have a revmap but no changesets to import, as convertcmd.convert() treats them as heads of to-imported revisions. diff --git a/hgext/convert/p4.py b/hgext/convert/p4.py --- a/hgext/convert/p4.py +++ b/hgext/convert/p4.py @@ -228,7 +228,7 @@ class p4_source(common.converter_source) self.copies[change] = copies lastid = change - if lastid: + if lastid and len(self.changeset) > 0: self.heads = [lastid] def getheads(self):