--- a/mercurial/commands.py Mon Nov 21 21:27:12 2016 -0500
+++ b/mercurial/commands.py Mon Nov 21 21:06:22 2016 -0500
@@ -40,6 +40,7 @@
dagparser,
dagutil,
destutil,
+ dirstateguard,
discovery,
encoding,
error,
@@ -686,7 +687,7 @@
bheads = repo.branchheads(branch)
rctx = scmutil.revsingle(repo, hex(parent))
if not opts.get('merge') and op1 != node:
- dsguard = cmdutil.dirstateguard(repo, 'backout')
+ dsguard = dirstateguard.dirstateguard(repo, 'backout')
try:
ui.setconfig('ui', 'forcemerge', opts.get('tool', ''),
'backout')
@@ -4884,7 +4885,7 @@
lock = repo.lock()
tr = repo.transaction('import')
else:
- dsguard = cmdutil.dirstateguard(repo, 'import')
+ dsguard = dirstateguard.dirstateguard(repo, 'import')
parents = repo[None].parents()
for patchurl in patches:
if patchurl == '-':