# HG changeset patch # User Martin Geisler # Date 2010-09-13 11:08:18 # Node ID 69e43c0515f211ecfb0a3145976fe02df32279ca # Parent 00658492e2aa57013c2371c1767af79d7fdb90c9 narrowmatcher: fix broken rel method diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -129,9 +129,13 @@ class narrowmatcher(match): ['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