Changeset 521aac34b275…
Parent 083e41414c96…
by
Changes to 2 files · Browse files at 521aac34b275 Showing diff from parent 083e41414c96 Diff from another changeset...
@@ -180,7 +180,7 @@ else:
ctx1a = p[0]
else:
- n1, n2 = cmdutil.revpair(repo, revs)
+ n1, n2 = hglib.revpair(repo, revs)
ctx1a, ctx2 = repo[n1], repo[n2]
p = ctx2.parents()
if not revs and len(p) > 1:
@@ -191,7 +191,7 @@ _('You likely need to refresh this application'))
return None
- pats = cmdutil.expandpats(pats)
+ pats = hglib.expandpats(pats)
m = match.match(repo.root, '', pats, None, None, 'relpath')
n2 = ctx2.node()
mod_a, add_a, rem_a = map(set, repo.status(ctx1a.node(), n2, m)[:3])
|
@@ -43,10 +43,10 @@ from mercurial.url import readauthforuri
try:
# hg >= 1.9
- from mercurial.scmutil import revrange
+ from mercurial.scmutil import revrange, expandpats, revpair
except (ImportError, AttributeError):
# hg <= 1.8
- from mercurial.cmdutil import revrange
+ from mercurial.cmdutil import revrange, expandpats, revpair
demandimport.enable()
def revsetmatch(ui, pattern):
|
Loading...