convert: self.heads is a list
authorDavid Soria Parra <davidsp@fb.com>
Wed, 14 Dec 2016 01:43:47 -0800
changeset 30598 364e14885cea
parent 30597 fa2d2c8ac398
child 30599 902c89df94e3
convert: self.heads is a list self.heads is used as a list throughout convert and never a dictionary. Initialize it correctly to a list.
hgext/convert/p4.py
--- a/hgext/convert/p4.py	Tue Dec 13 21:49:58 2016 -0800
+++ b/hgext/convert/p4.py	Wed Dec 14 01:43:47 2016 -0800
@@ -56,7 +56,7 @@
         common.checktool('p4', abort=False)
 
         self.p4changes = {}
-        self.heads = {}
+        self.heads = []
         self.changeset = {}
         self.files = {}
         self.copies = {}