hgext/uncommit.py
changeset 47012 d55b71393907
parent 46465 0e2becd1fe0c
child 47428 54849b65dc5f
--- a/hgext/uncommit.py	Mon Apr 19 20:38:52 2021 -0400
+++ b/hgext/uncommit.py	Mon Mar 29 01:52:06 2021 +0200
@@ -20,7 +20,6 @@
 from __future__ import absolute_import
 
 from mercurial.i18n import _
-from mercurial.node import nullid
 
 from mercurial import (
     cmdutil,
@@ -113,7 +112,7 @@
 
     new = context.memctx(
         repo,
-        parents=[base.node(), nullid],
+        parents=[base.node(), repo.nullid],
         text=message,
         files=files,
         filectxfn=filectxfn,