changeset 12267:69e43c0515f2

narrowmatcher: fix broken rel method
author Martin Geisler <mg@lazybytes.net>
date Mon, 13 Sep 2010 13:08:18 +0200
parents 00658492e2aa
children 83aaeba32b88
files mercurial/match.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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