# HG changeset patch # User Augie Fackler # Date 2016-11-22 02:06:22 # Node ID 13251523b20c2ef25a4e576a74b935a4a95ee2d2 # Parent ee2097c560c1565509359402e06be0ae4a5a56e0 commands: refer to dirstateguard by its new name diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -40,6 +40,7 @@ from . import ( dagparser, dagutil, destutil, + dirstateguard, discovery, encoding, error, @@ -686,7 +687,7 @@ def _dobackout(ui, repo, node=None, rev= 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 @@ def import_(ui, repo, patch1=None, *patc 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 == '-':