[PATCH 07 of 20] subrepo: directly use repo.vfs.join

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun Mar 12 10:45:41 EDT 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1489020827 28800
#      Wed Mar 08 16:53:47 2017 -0800
# Node ID 81eb72c8ba72c9c0f57dc8e090b5bd9d2bff7cf1
# Parent  59fbf352777b40ac00fb8185f1cf900544fc769c
# 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 81eb72c8ba72
subrepo: directly use repo.vfs.join

The 'repo.join' method is about to be deprecated.

diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -678,7 +678,7 @@ class hgsubrepo(abstractsubrepo):
 
     @propertycache
     def _cachestorehashvfs(self):
-        return vfsmod.vfs(self._repo.join('cache/storehash'))
+        return vfsmod.vfs(self._repo.vfs.join('cache/storehash'))
 
     def _readstorehashcache(self, remotepath):
         '''read the store hash cache for a given remote repository'''


More information about the Mercurial-devel mailing list