shelve: directly use repo.vfs.join
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 08 Mar 2017 16:52:42 -0800
changeset 31344 3acc7af5859c
parent 31343 553680d1b654
child 31345 0199686a1a1c
shelve: directly use repo.vfs.join The 'repo.join' method is about to be deprecated.
hgext/shelve.py
--- a/hgext/shelve.py	Wed Mar 08 16:52:30 2017 -0800
+++ b/hgext/shelve.py	Wed Mar 08 16:52:42 2017 -0800
@@ -79,8 +79,8 @@
     def __init__(self, repo, name, filetype=None):
         self.repo = repo
         self.name = name
-        self.vfs = vfsmod.vfs(repo.join(shelvedir))
-        self.backupvfs = vfsmod.vfs(repo.join(backupdir))
+        self.vfs = vfsmod.vfs(repo.vfs.join(shelvedir))
+        self.backupvfs = vfsmod.vfs(repo.vfs.join(backupdir))
         self.ui = self.repo.ui
         if filetype:
             self.fname = name + '.' + filetype
@@ -221,7 +221,7 @@
         repo.vfs.unlinkpath(cls._filename, ignoremissing=True)
 
 def cleanupoldbackups(repo):
-    vfs = vfsmod.vfs(repo.join(backupdir))
+    vfs = vfsmod.vfs(repo.vfs.join(backupdir))
     maxbackups = repo.ui.configint('shelve', 'maxbackups', 10)
     hgfiles = [f for f in vfs.listdir()
                if f.endswith('.' + patchextension)]