mercurial/obsolete.py
changeset 32318 7c3ef55dedbe
parent 32245 4462a981e8df
child 32366 3546a771e376
--- a/mercurial/obsolete.py	Sat May 13 11:31:36 2017 -0700
+++ b/mercurial/obsolete.py	Sat May 13 11:42:42 2017 -0700
@@ -217,8 +217,8 @@
         if not parents:
             # mark that we explicitly recorded no parents
             metadata['p0'] = ''
-        for i, p in enumerate(parents):
-            metadata['p%i' % (i + 1)] = node.hex(p)
+        for i, p in enumerate(parents, 1):
+            metadata['p%i' % i] = node.hex(p)
     metadata = _fm0encodemeta(metadata)
     numsuc = len(sucs)
     format = _fm0fixed + (_fm0node * numsuc)