# HG changeset patch # User Augie Fackler # Date 1479780382 18000 # Node ID 13251523b20c2ef25a4e576a74b935a4a95ee2d2 # Parent ee2097c560c1565509359402e06be0ae4a5a56e0 commands: refer to dirstateguard by its new name diff -r ee2097c560c1 -r 13251523b20c mercurial/commands.py --- 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 == '-':