hgext/convert/p4.py
changeset 30602 b36a0fa7f969
parent 30601 d47a01bf0059
child 30603 db9e883566e8
--- 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):