hgext/split.py
changeset 49960 7a8bfc05b691
parent 49959 c166b212bdee
child 50884 b5066b2b40f2
--- a/hgext/split.py	Wed Jan 25 18:46:20 2023 +0100
+++ b/hgext/split.py	Wed Jan 25 19:12:31 2023 +0100
@@ -134,7 +134,7 @@
     # Set working parent to ctx.p1(), and keep working copy as ctx's content
     if ctx.node() != repo.dirstate.p1():
         hg.clean(repo, ctx.node(), show_stats=False)
-    with repo.dirstate.parentchange(repo):
+    with repo.dirstate.changing_parents(repo):
         scmutil.movedirstate(repo, ctx.p1())
 
     # Any modified, added, removed, deleted result means split is incomplete