[PATCH] wfile: fix deprecation warning version

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Mar 16 18:24:31 UTC 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1489688275 25200
#      Thu Mar 16 11:17:55 2017 -0700
# Node ID d26d5987f6ef6a8a260f2aef6783aaaa8a66b9fe
# Parent  b2fb0fd239b88f0f9ec70c43f30d2f1ef0cb1049
# EXP-Topic fix-depr
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r d26d5987f6ef
wfile: fix deprecation warning version

The patch lingered a bit too long in my local clone and I messed up when I
updated the version number. Since nobody caught it, I'm fixing the version after
the fact.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -977,7 +977,7 @@ class localrepository(object):
         return self.dirstate.pathto(f, cwd)
 
     def wfile(self, f, mode='r'):
-        self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wfile'", '4.1')
+        self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wfile'", '4.2')
         return self.wvfs(f, mode)
 
     def _link(self, f):


More information about the Mercurial-devel mailing list