# HG changeset patch # User Matt Mackall # Date 2008-05-12 16:37:08 # Node ID fca1688f04591a8a7ca8e4d3a88f5a865e4f6318 # Parent 58b6ee2e6c923ed249f835c7539ec529e3fa529a resolve: use cmdutil.match diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2259,10 +2259,10 @@ def resolve(ui, repo, *pats, **opts): 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"):