Commits

Martin Vejnár  committed 3a51e6f

The null revision can now be assigned a dependency list as well.

  • Participants
  • Parent commits 871bbba

Comments (0)

Files changed (1)

         # hg-1.0 and hg-1.2.
         parents = [parent for parent in chctx.parents()
             if parent.node() != mercurial.node.nullid]
-        chctx = parents[0] if len(parents) == 1 else None
+        if not parents:
+            chctx = context.changectx(repo, mercurial.node.nullid)
+        elif len(parents) == 1:
+            chctx = parents[0]
+        else:
+            chctx = None
     
     return default