Patchwork [8,of,8] localrepo: drop the deprecated walk() method (API)

login
register
mail settings
Submitter Matt Harbison
Date Feb. 3, 2018, 6:35 a.m.
Message ID <b616b6a43ffd812a8034.1517639704@Envy>
Download mbox | patch
Permalink /patch/27259/
State Accepted
Headers show

Comments

Matt Harbison - Feb. 3, 2018, 6:35 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1517634117 18000
#      Sat Feb 03 00:01:57 2018 -0500
# Node ID b616b6a43ffd812a80348162ca499060278baf5e
# Parent  7f21211d4bf3e9cd7a21b2c2bd1fabb69b9b7e94
localrepo: drop the deprecated walk() method (API)

.. api::

   The deprecated localrepo.walk() has been removed, and replaced by
   repo[node].walk().

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -2048,15 +2048,6 @@ 
         # tag cache retrieval" case to work.
         self.invalidate()
 
-    def walk(self, match, node=None):
-        '''
-        walk recursively through the directory tree or a given
-        changeset, finding all files matched by the match
-        function
-        '''
-        self.ui.deprecwarn('use repo[node].walk instead of repo.walk', '4.3')
-        return self[node].walk(match)
-
     def status(self, node1='.', node2=None, match=None,
                ignored=False, clean=False, unknown=False,
                listsubrepos=False):