changeset 20286 | 760151697a4f |
parent 20285 | 189fe1b3d16a |
child 20287 | f3cef19befb1 |
--- a/mercurial/revset.py Fri Jan 17 23:42:12 2014 +0900 +++ b/mercurial/revset.py Fri Jan 17 23:42:12 2014 +0900 @@ -12,6 +12,7 @@ from i18n import _ import encoding import obsolete as obsmod +import pathutil import repoview def _revancestors(repo, revs, followfirst): @@ -530,6 +531,7 @@ pat = getstring(x, _("contains requires a pattern")) s = [] if not matchmod.patkind(pat): + pat = pathutil.canonpath(repo.root, repo.getcwd(), pat) for r in subset: if pat in repo[r]: s.append(r)