Changeset 5ca25358fa57…
Parent 521aac34b275…
by
Changes to 4 files · Browse files at 5ca25358fa57 Showing diff from parent 521aac34b275 Diff from another changeset...
@@ -9,7 +9,7 @@ import stat
import shutil
-from mercurial import cmdutil, hg, ui
+from mercurial import hg, ui
from tortoisehg.util import hglib
from tortoisehg.hgqt.i18n import _, ngettext
@@ -203,7 +203,7 @@ failures.append(trashcan)
self.showMessage.emit('')
- match = cmdutil.match(repo, [], {})
+ match = hglib.matchall(repo)
match.dir = directories.append
status = repo.status(match=match, ignored=opts['ignored'],
unknown=opts['unknown'], clean=False)
|
@@ -398,7 +398,7 @@ else:
# status and commit only pre-check MAR files
precheckfn = lambda x: x < 4
- m = cmdutil.match(self.repo, self.pats)
+ m = hglib.match(self.repo, self.pats)
status = self.repo.status(match=m, **stopts)
# Record all matched files as initially checked
for i, stat in enumerate(StatusType.preferredOrder):
|
@@ -8,7 +8,7 @@ import os
import sys
-from mercurial import hg, cmdutil, util, ui, node, merge, error
+from mercurial import hg, util, ui, node, merge, error
from tortoisehg.util import paths, debugthg, hglib
debugging = False
@@ -201,7 +201,7 @@ tc1 = GetTickCount()
try:
- matcher = cmdutil.match(repo, [pdir])
+ matcher = hglib.match(repo, [pdir])
repostate = repo.status(match=matcher, ignored=True,
clean=True, unknown=True)
except util.Abort, inst:
|
@@ -43,10 +43,10 @@ from mercurial.url import readauthforuri
try:
# hg >= 1.9
- from mercurial.scmutil import revrange, expandpats, revpair
+ from mercurial.scmutil import revrange, expandpats, revpair, match, matchall
except (ImportError, AttributeError):
# hg <= 1.8
- from mercurial.cmdutil import revrange, expandpats, revpair
+ from mercurial.cmdutil import revrange, expandpats, revpair, match, matchall
demandimport.enable()
def revsetmatch(ui, pattern):
|
Loading...