Changeset 15327dad38db…
Parent dfbe61aa11b3…
by
Changes to one file · Browse files at 15327dad38db Showing diff from parent dfbe61aa11b3 Diff from another changeset...
@@ -153,8 +153,10 @@ '''
admin = repo.join(long_name)
try:
+ # Mercurial >= 1.9
opener = scmutil.opener(admin)
except ImportError:
+ # Mercurial <= 1.8
opener = util.opener(admin)
if hasattr(repo.dirstate, '_validate'):
bfdirstate = dirstate.dirstate(opener, ui, repo.root, repo.dirstate._validate)
@@ -273,8 +275,10 @@ the match object\'s bad() method so it does not print any warnings
about missing files or directories.'''
try:
+ # Mercurial >= 1.9
match = scmutil.match(repo[None], pats, opts)
except ImportError:
+ # Mercurial <= 1.8
match = cmdutil.match(repo, pats, opts)
if not showbad:
|
Loading...