mercurial/shelve.py
changeset 52645 4cb75772818d
parent 51859 f4733654f144
equal deleted inserted replaced
52644:e627cc25b6f3 52645:4cb75772818d
    86         if for_backups:
    86         if for_backups:
    87             self.vfs = vfsmod.vfs(repo.vfs.join(backupdir))
    87             self.vfs = vfsmod.vfs(repo.vfs.join(backupdir))
    88         else:
    88         else:
    89             self.vfs = vfsmod.vfs(repo.vfs.join(shelvedir))
    89             self.vfs = vfsmod.vfs(repo.vfs.join(shelvedir))
    90 
    90 
    91     def get(self, name: bytes) -> "Shelf":
    91     def get(self, name: bytes) -> Shelf:
    92         return Shelf(self.vfs, name)
    92         return Shelf(self.vfs, name)
    93 
    93 
    94     def listshelves(self) -> List[Tuple[float, bytes]]:
    94     def listshelves(self) -> List[Tuple[float, bytes]]:
    95         """return all shelves in repo as list of (time, name)"""
    95         """return all shelves in repo as list of (time, name)"""
    96         try:
    96         try: