mercurial/commands.py
changeset 50121 927da152800c
parent 50120 b54801fec664
--- a/mercurial/commands.py	Tue Feb 14 00:42:00 2023 +0100
+++ b/mercurial/commands.py	Tue Feb 14 00:40:27 2023 +0100
@@ -28,7 +28,6 @@
     copies,
     debugcommands as debugcommandsmod,
     destutil,
-    dirstateguard,
     discovery,
     encoding,
     error,
@@ -824,7 +823,7 @@
     bheads = repo.branchheads(branch)
     rctx = scmutil.revsingle(repo, hex(parent))
     if not opts.get(b'merge') and op1 != node:
-        with dirstateguard.dirstateguard(repo, b'backout'):
+        with repo.transaction(b"backout"):
             overrides = {(b'ui', b'forcemerge'): opts.get(b'tool', b'')}
             with ui.configoverride(overrides, b'backout'):
                 stats = mergemod.back_out(ctx, parent=repo[parent])