Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 6594:fca1688f0459
resolve: use cmdutil.match
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | d3463007d368 |
children | cd4db3999ef9 |
line wrap: on
line diff
--- a/mercurial/commands.py Mon May 12 11:37:08 2008 -0500 +++ b/mercurial/commands.py Mon May 12 11:37:08 2008 -0500 @@ -2259,10 +2259,10 @@ raise util.Abort(_("too many options specified")) ms = merge_.mergestate(repo) - mf = util.matcher(repo.root, "", pats, [], [])[1] + m = cmdutil.match(repo, pats, opts) for f in ms: - if mf(f): + if m(f): if opts.get("list"): ui.write("%s %s\n" % (ms[f].upper(), f)) elif opts.get("mark"):