changeset 30602:b36a0fa7f969

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.
author David Soria Parra <davidsp@fb.com>
date Tue, 13 Dec 2016 21:49:58 -0800
parents d47a01bf0059
children db9e883566e8
files hgext/convert/p4.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/p4.py	Wed Dec 14 01:45:57 2016 -0800
+++ b/hgext/convert/p4.py	Tue Dec 13 21:49:58 2016 -0800
@@ -228,7 +228,7 @@
             self.copies[change] = copies
             lastid = change
 
-        if lastid:
+        if lastid and len(self.changeset) > 0:
             self.heads = [lastid]
 
     def getheads(self):