[PATCH 4 of 4] localrepo: mark walk convenience method as deprecated
Augie Fackler
raf at durin42.com
Fri May 19 17:39:20 EDT 2017
# HG changeset patch
# User Augie Fackler <augie at 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
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,
More information about the Mercurial-devel
mailing list