Patchwork wfile: fix deprecation warning version

login
register
mail settings
Submitter Pierre-Yves David
Date March 16, 2017, 6:24 p.m.
Message ID <d26d5987f6ef6a8a260f.1489688671@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/19397/
State Accepted
Headers show

Comments

Pierre-Yves David - March 16, 2017, 6:24 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.
Yuya Nishihara - March 17, 2017, 12:40 p.m.
On Thu, 16 Mar 2017 11:24:31 -0700, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@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

Sure, queued thanks.

Patch

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):