diff mercurial/match.py @ 12267:69e43c0515f2

narrowmatcher: fix broken rel method
author Martin Geisler <mg@lazybytes.net>
date Mon, 13 Sep 2010 13:08:18 +0200
parents b7fbf24c8a93
children 83aaeba32b88
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