[PATCH 19 of 20] transplant: directly use repo.vfs.join
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sun Mar 12 10:45:53 EDT 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1489020769 28800
# Wed Mar 08 16:52:49 2017 -0800
# Node ID e861b60800fc9be5d4bc33250e030c8801d87d95
# Parent 601f0e651365ed906bd9e59ab139e908f50adf8c
# 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 e861b60800fc
transplant: directly use repo.vfs.join
The 'repo.join' method is about to be deprecated.
diff --git a/hgext/transplant.py b/hgext/transplant.py
--- a/hgext/transplant.py
+++ b/hgext/transplant.py
@@ -103,7 +103,7 @@ class transplants(object):
class transplanter(object):
def __init__(self, ui, repo, opts):
self.ui = ui
- self.path = repo.join('transplant')
+ self.path = repo.vfs.join('transplant')
self.opener = vfsmod.vfs(self.path)
self.transplants = transplants(self.path, 'transplants',
opener=self.opener)
More information about the Mercurial-devel
mailing list