Commits

Martin Geisler  committed e7e3150

hglib: remove unused import

The guards for older versions of Mercurial were unneeded, and in the
end it turned out that the updatedir function wasn't used at all.

  • Participants
  • Parent commits b4a2b90
  • Branches hgtk

Comments (0)

Files changed (1)

File tortoisehg/util/hglib.py

 import time
 import inspect
 
-from mercurial import demandimport
-demandimport.disable()
-try:
-    # hg >= 2.0
-    from mercurial.scmutil import updatedir
-except ImportError:
-    try:
-        # hg >= 1.7
-        from mercurial.cmdutil import updatedir
-    except ImportError:
-        # hg <= 1.6
-        from mercurial.patch import updatedir
-demandimport.enable()
-
 from mercurial import ui, util, error, extensions, match, bundlerepo, cmdutil
 from mercurial import dispatch, encoding, templatefilters, filemerge, scmutil