comparison mercurial/localrepo.py @ 35936:ed3a7300b7b5

localrepo: drop the deprecated walk() method (API) .. api:: The deprecated localrepo.walk() has been removed, and replaced by repo[node].walk().
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 03 Feb 2018 00:01:57 -0500
parents b43b314cc46a
children 55e8efa2451a
comparison
equal deleted inserted replaced
35935:265e91da56fd 35936:ed3a7300b7b5
2046 # head, refresh the tag cache, then immediately add a new head. 2046 # head, refresh the tag cache, then immediately add a new head.
2047 # But I think doing it this way is necessary for the "instant 2047 # But I think doing it this way is necessary for the "instant
2048 # tag cache retrieval" case to work. 2048 # tag cache retrieval" case to work.
2049 self.invalidate() 2049 self.invalidate()
2050 2050
2051 def walk(self, match, node=None):
2052 '''
2053 walk recursively through the directory tree or a given
2054 changeset, finding all files matched by the match
2055 function
2056 '''
2057 self.ui.deprecwarn('use repo[node].walk instead of repo.walk', '4.3')
2058 return self[node].walk(match)
2059
2060 def status(self, node1='.', node2=None, match=None, 2051 def status(self, node1='.', node2=None, match=None,
2061 ignored=False, clean=False, unknown=False, 2052 ignored=False, clean=False, unknown=False,
2062 listsubrepos=False): 2053 listsubrepos=False):
2063 '''a convenience method that calls node1.status(node2)''' 2054 '''a convenience method that calls node1.status(node2)'''
2064 return self[node1].status(node2, match, ignored, clean, unknown, 2055 return self[node1].status(node2, match, ignored, clean, unknown,