##// END OF EJS Templates
shelve: directly use repo.vfs.join...
Pierre-Yves David -
r31335:3acc7af5 default
parent child Browse files
Show More
@@ -79,8 +79,8 b' class shelvedfile(object):'
79 79 def __init__(self, repo, name, filetype=None):
80 80 self.repo = repo
81 81 self.name = name
82 self.vfs = vfsmod.vfs(repo.join(shelvedir))
83 self.backupvfs = vfsmod.vfs(repo.join(backupdir))
82 self.vfs = vfsmod.vfs(repo.vfs.join(shelvedir))
83 self.backupvfs = vfsmod.vfs(repo.vfs.join(backupdir))
84 84 self.ui = self.repo.ui
85 85 if filetype:
86 86 self.fname = name + '.' + filetype
@@ -221,7 +221,7 b' class shelvedstate(object):'
221 221 repo.vfs.unlinkpath(cls._filename, ignoremissing=True)
222 222
223 223 def cleanupoldbackups(repo):
224 vfs = vfsmod.vfs(repo.join(backupdir))
224 vfs = vfsmod.vfs(repo.vfs.join(backupdir))
225 225 maxbackups = repo.ui.configint('shelve', 'maxbackups', 10)
226 226 hgfiles = [f for f in vfs.listdir()
227 227 if f.endswith('.' + patchextension)]
General Comments 0
You need to be logged in to leave comments. Login now