convert: directly use nullid
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Mon, 18 May 2009 22:55:45 +0200
changeset 8495 5b7596b142ad
parent 8494 97184c58d0b8
child 8496 a21605de1509
child 8504 e35d844f5afc
convert: directly use nullid
hgext/convert/hg.py
--- a/hgext/convert/hg.py	Mon May 18 13:54:21 2009 -0500
+++ b/hgext/convert/hg.py	Mon May 18 22:55:45 2009 +0200
@@ -131,8 +131,8 @@
             m1node = self.repo.changelog.read(bin(parents[0]))[0]
             parent = parents[0]
 
-        if len(parents) < 2: parents.append("0" * 40)
-        if len(parents) < 2: parents.append("0" * 40)
+        if len(parents) < 2: parents.append(nullid)
+        if len(parents) < 2: parents.append(nullid)
         p2 = parents.pop(0)
 
         text = commit.desc