hgext/uncommit.py
changeset 41397 0bd56c291359
parent 41342 fe83040400b7
child 41745 83d294c71f1e
--- a/hgext/uncommit.py	Mon Jan 21 15:29:14 2019 +0000
+++ b/hgext/uncommit.py	Fri Jan 25 23:36:23 2019 -0800
@@ -67,7 +67,7 @@
     files = (initialfiles - exclude)
     # return the p1 so that we don't create an obsmarker later
     if not keepcommit:
-        return ctx.parents()[0].node()
+        return ctx.p1().node()
 
     # Filter copies
     copied = copiesmod.pathcopies(base, ctx)