##// END OF EJS Templates
resolve: use cmdutil.match
Matt Mackall -
r6594:fca1688f default
parent child Browse files
Show More
@@ -2259,10 +2259,10 b' def resolve(ui, repo, *pats, **opts):'
2259 raise util.Abort(_("too many options specified"))
2259 raise util.Abort(_("too many options specified"))
2260
2260
2261 ms = merge_.mergestate(repo)
2261 ms = merge_.mergestate(repo)
2262 mf = util.matcher(repo.root, "", pats, [], [])[1]
2262 m = cmdutil.match(repo, pats, opts)
2263
2263
2264 for f in ms:
2264 for f in ms:
2265 if mf(f):
2265 if m(f):
2266 if opts.get("list"):
2266 if opts.get("list"):
2267 ui.write("%s %s\n" % (ms[f].upper(), f))
2267 ui.write("%s %s\n" % (ms[f].upper(), f))
2268 elif opts.get("mark"):
2268 elif opts.get("mark"):
General Comments 0
You need to be logged in to leave comments. Login now