changeset 30598:364e14885cea

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.
author David Soria Parra <davidsp@fb.com>
date Wed, 14 Dec 2016 01:43:47 -0800
parents fa2d2c8ac398
children 902c89df94e3
files hgext/convert/p4.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}