Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 6582:5acbdd3941c4
walk: remove remaining users of cmdutils.matchpats
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:07 -0500 |
parents | 1ae7cb678d24 |
children | 29c77e5dfb3c |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon May 12 11:37:07 2008 -0500 +++ b/mercurial/cmdutil.py Mon May 12 11:37:07 2008 -0500 @@ -235,10 +235,6 @@ m.bad = badfn return m -def matchpats(repo, pats=[], opts={}, globbed=False, default='relpath'): - m = match(repo, pats, opts, globbed, default) - return m.files(), m, m.anypats() - def walk(repo, match, node=None): for src, fn in repo.walk(node, match): yield src, fn, match.rel(fn), match.exact(fn) @@ -1182,6 +1178,6 @@ else: files = [] try: - return commitfunc(ui, repo, files, message, match, opts) + return commitfunc(ui, repo, files, message, m, opts) except ValueError, inst: raise util.Abort(str(inst))