Patchwork [4,of,4] localrepo: mark walk convenience method as deprecated

login
register
mail settings
Submitter Augie Fackler
Date May 19, 2017, 9:39 p.m.
Message ID <2166762eadc440a70f8b.1495229960@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/20746/
State Accepted
Headers show

Comments

Augie Fackler - May 19, 2017, 9:39 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1495144908 14400
#      Thu May 18 18:01:48 2017 -0400
# Node ID 2166762eadc440a70f8bcfbae6248e2ce2712b64
# Parent  d915f006acf67a7f8f57526a697f498cea3830cc
localrepo: mark walk convenience method as deprecated
Yuya Nishihara - May 20, 2017, 4:33 a.m.
On Fri, 19 May 2017 17:39:20 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie@google.com>
> # Date 1495144908 14400
> #      Thu May 18 18:01:48 2017 -0400
> # Node ID 2166762eadc440a70f8bcfbae6248e2ce2712b64
> # Parent  d915f006acf67a7f8f57526a697f498cea3830cc
> localrepo: mark walk convenience method as deprecated

Flagged this as (API) and queued, thanks.

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1869,6 +1869,7 @@  class localrepository(object):
         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,