##// 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 def __init__(self, repo, name, filetype=None):
79 def __init__(self, repo, name, filetype=None):
80 self.repo = repo
80 self.repo = repo
81 self.name = name
81 self.name = name
82 self.vfs = vfsmod.vfs(repo.join(shelvedir))
82 self.vfs = vfsmod.vfs(repo.vfs.join(shelvedir))
83 self.backupvfs = vfsmod.vfs(repo.join(backupdir))
83 self.backupvfs = vfsmod.vfs(repo.vfs.join(backupdir))
84 self.ui = self.repo.ui
84 self.ui = self.repo.ui
85 if filetype:
85 if filetype:
86 self.fname = name + '.' + filetype
86 self.fname = name + '.' + filetype
@@ -221,7 +221,7 b' class shelvedstate(object):'
221 repo.vfs.unlinkpath(cls._filename, ignoremissing=True)
221 repo.vfs.unlinkpath(cls._filename, ignoremissing=True)
222
222
223 def cleanupoldbackups(repo):
223 def cleanupoldbackups(repo):
224 vfs = vfsmod.vfs(repo.join(backupdir))
224 vfs = vfsmod.vfs(repo.vfs.join(backupdir))
225 maxbackups = repo.ui.configint('shelve', 'maxbackups', 10)
225 maxbackups = repo.ui.configint('shelve', 'maxbackups', 10)
226 hgfiles = [f for f in vfs.listdir()
226 hgfiles = [f for f in vfs.listdir()
227 if f.endswith('.' + patchextension)]
227 if f.endswith('.' + patchextension)]
General Comments 0
You need to be logged in to leave comments. Login now