[PATCH 1 of 4] narrowmatcher: fix broken rel method
Martin Geisler
mg at lazybytes.net
Tue Sep 7 10:43:43 CDT 2010
# HG changeset patch
# User Martin Geisler <mg at lazybytes.net>
# Date 1283871681 -7200
# Node ID 5436a29c2668316a5bf1da58dbbd2bca8705cb99
# Parent ecab10820983d19d335a34b67f9c0902b75ebaf5
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 @@
['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
More information about the Mercurial-devel
mailing list