mq: refer to dirstateguard by its new name
authorAugie Fackler <augie@google.com>
Mon, 21 Nov 2016 21:05:52 -0500
changeset 30489 0ae83ede68c5
parent 30488 751639bf6fc4
child 30490 ee2097c560c1
mq: refer to dirstateguard by its new name
hgext/mq.py
--- a/hgext/mq.py	Mon Nov 21 21:29:32 2016 -0500
+++ b/hgext/mq.py	Mon Nov 21 21:05:52 2016 -0500
@@ -79,6 +79,7 @@
 from mercurial import (
     cmdutil,
     commands,
+    dirstateguard,
     error,
     extensions,
     hg,
@@ -1724,7 +1725,7 @@
 
             dsguard = None
             try:
-                dsguard = cmdutil.dirstateguard(repo, 'mq.refresh')
+                dsguard = dirstateguard.dirstateguard(repo, 'mq.refresh')
                 if diffopts.git or diffopts.upgrade:
                     copies = {}
                     for dst in a: