diff -r 00658492e2aa -r 69e43c0515f2 mercurial/match.py --- a/mercurial/match.py Mon Sep 13 13:08:09 2010 +0200 +++ b/mercurial/match.py Mon Sep 13 13:08:18 2010 +0200 @@ -129,9 +129,13 @@ ['b.txt'] >>> m2.exact('b.txt') True + >>> m2.rel('b.txt') + 'b.txt' """ def __init__(self, path, matcher): + self._root = matcher._root + self._cwd = matcher._cwd self._path = path self._matcher = matcher