hgext/strip.py
changeset 41397 0bd56c291359
parent 40346 943248e47864
child 41798 8c42b4a3d447
--- a/hgext/strip.py	Mon Jan 21 15:29:14 2019 +0000
+++ b/hgext/strip.py	Fri Jan 25 23:36:23 2019 -0800
@@ -39,7 +39,7 @@
     if baserev:
         bctx = repo[baserev]
     else:
-        bctx = wctx.parents()[0]
+        bctx = wctx.p1()
     for s in sorted(wctx.substate):
         wctx.sub(s).bailifchanged(True)
         if s not in bctx.substate or bctx.sub(s).dirty():