hgext/sparse.py
changeset 35885 7625b4f7db70
parent 35192 d8d06a930d60
child 35887 572f36e9a780
--- a/hgext/sparse.py	Fri Feb 02 13:13:46 2018 -0800
+++ b/hgext/sparse.py	Sun Jan 21 12:26:42 2018 +0900
@@ -75,12 +75,12 @@
 
 from mercurial.i18n import _
 from mercurial import (
-    cmdutil,
     commands,
     dirstate,
     error,
     extensions,
     hg,
+    logcmdutil,
     match as matchmod,
     pycompat,
     registrar,
@@ -135,7 +135,7 @@
                 return any(f for f in ctx.files() if sparsematch(f))
             revs = revs.filter(ctxmatch)
         return revs
-    extensions.wrapfunction(cmdutil, '_logrevs', _logrevs)
+    extensions.wrapfunction(logcmdutil, '_logrevs', _logrevs)
 
 def _clonesparsecmd(orig, ui, repo, *args, **opts):
     include_pat = opts.get('include')