Show More
@@ -277,10 +277,6 b' class basematcher(object):' | |||
|
277 | 277 | # by recursive traversal is visited. |
|
278 | 278 | traversedir = None |
|
279 | 279 | |
|
280 | def rel(self, f): | |
|
281 | '''Convert repo path back to path that is relative to cwd of matcher.''' | |
|
282 | return util.pathto(self._root, self._cwd, f) | |
|
283 | ||
|
284 | 280 | @propertycache |
|
285 | 281 | def _files(self): |
|
286 | 282 | return [] |
@@ -710,7 +706,6 b' def intersectmatchers(m1, m2):' | |||
|
710 | 706 | m.bad = m1.bad |
|
711 | 707 | m.explicitdir = m1.explicitdir |
|
712 | 708 | m.traversedir = m1.traversedir |
|
713 | m.rel = m1.rel | |
|
714 | 709 | return m |
|
715 | 710 | if m2.always(): |
|
716 | 711 | m = copy.copy(m1) |
@@ -798,8 +793,6 b' class subdirmatcher(basematcher):' | |||
|
798 | 793 | ['b.txt'] |
|
799 | 794 | >>> m2.exact(b'b.txt') |
|
800 | 795 | True |
|
801 | >>> util.pconvert(m2.rel(b'b.txt')) | |
|
802 | 'sub/b.txt' | |
|
803 | 796 | >>> def bad(f, msg): |
|
804 | 797 | ... print(pycompat.sysstr(b"%s: %s" % (f, msg))) |
|
805 | 798 | >>> m1.bad = bad |
@@ -824,9 +817,6 b' class subdirmatcher(basematcher):' | |||
|
824 | 817 | def bad(self, f, msg): |
|
825 | 818 | self._matcher.bad(self._path + "/" + f, msg) |
|
826 | 819 | |
|
827 | def rel(self, f): | |
|
828 | return self._matcher.rel(self._path + "/" + f) | |
|
829 | ||
|
830 | 820 | def matchfn(self, f): |
|
831 | 821 | # Some information is lost in the superclass's constructor, so we |
|
832 | 822 | # can not accurately create the matching function for the subdirectory |
General Comments 0
You need to be logged in to leave comments.
Login now