narrowmatcher: fix broken rel method
authorMartin Geisler <mg@lazybytes.net>
Mon, 13 Sep 2010 13:08:18 +0200
changeset 12267 69e43c0515f2
parent 12266 00658492e2aa
child 12268 83aaeba32b88
narrowmatcher: fix broken rel method
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