Patchwork [1,of,2] repo: fix deprecation version for 'repo.join'

login
register
mail settings
Submitter Pierre-Yves David
Date April 4, 2017, 2:54 p.m.
Message ID <1efd0a70a0c9a185d3f6.1491317662@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/19950/
State Accepted
Headers show

Comments

Pierre-Yves David - April 4, 2017, 2:54 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1491317338 -7200
#      Tue Apr 04 16:48:58 2017 +0200
# Node ID 1efd0a70a0c9a185d3f6de6030a37608a9a8dbd5
# Parent  04ec317b81280c189fcea33a05c8cbbac3c186b1
# EXP-Topic vfs.cleanup
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 1efd0a70a0c9
repo: fix deprecation version for 'repo.join'

The patch lingered for a while and nobody noticed when it was resubmitted.
Yuya Nishihara - April 5, 2017, 1:54 p.m.
On Tue, 04 Apr 2017 16:54:22 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
> # Date 1491317338 -7200
> #      Tue Apr 04 16:48:58 2017 +0200
> # Node ID 1efd0a70a0c9a185d3f6de6030a37608a9a8dbd5
> # Parent  04ec317b81280c189fcea33a05c8cbbac3c186b1
> # EXP-Topic vfs.cleanup
> # Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
> #              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 1efd0a70a0c9
> repo: fix deprecation version for 'repo.join'

Queued, thanks.

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -842,7 +842,7 @@  class localrepository(object):
         return None
 
     def join(self, f, *insidef):
-        self.ui.deprecwarn("use 'repo.vfs.join' instead of 'repo.join'", '4.0')
+        self.ui.deprecwarn("use 'repo.vfs.join' instead of 'repo.join'", '4.2')
         return self.vfs.join(os.path.join(f, *insidef))
 
     def wjoin(self, f, *insidef):