match: delete unused abs() (API)
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 08 Feb 2019 13:27:26 -0800
changeset 41658 727f0be3539a
parent 41657 e41449818bee
child 41659 ecf7f4ef52fb
match: delete unused abs() (API) Differential Revision: https://phab.mercurial-scm.org/D5908
mercurial/match.py
--- a/mercurial/match.py	Fri Feb 08 13:00:05 2019 -0800
+++ b/mercurial/match.py	Fri Feb 08 13:27:26 2019 -0800
@@ -277,11 +277,6 @@
     # by recursive traversal is visited.
     traversedir = None
 
-    def abs(self, f):
-        '''Convert a repo path back to path that is relative to the root of the
-        matcher.'''
-        return f
-
     def rel(self, f):
         '''Convert repo path back to path that is relative to cwd of matcher.'''
         return util.pathto(self._root, self._cwd, f)
@@ -715,7 +710,6 @@
         m.bad = m1.bad
         m.explicitdir = m1.explicitdir
         m.traversedir = m1.traversedir
-        m.abs = m1.abs
         m.rel = m1.rel
         return m
     if m2.always():
@@ -811,8 +805,6 @@
     >>> m1.bad = bad
     >>> m2.bad(b'x.txt', b'No such file')
     sub/x.txt: No such file
-    >>> m2.abs(b'c.txt')
-    'sub/c.txt'
     """
 
     def __init__(self, path, matcher):
@@ -832,9 +824,6 @@
     def bad(self, f, msg):
         self._matcher.bad(self._path + "/" + f, msg)
 
-    def abs(self, f):
-        return self._matcher.abs(self._path + "/" + f)
-
     def rel(self, f):
         return self._matcher.rel(self._path + "/" + f)