##// END OF EJS Templates
shelve: use listshelves() in cleanup function...
Martin von Zweigbergk -
r47001:8db5fa21 default
parent child Browse files
Show More
@@ -602,10 +602,11 b' def cleanupcmd(ui, repo):'
602 """subcommand that deletes all shelves"""
602 """subcommand that deletes all shelves"""
603
603
604 with repo.wlock():
604 with repo.wlock():
605 for (name, _type) in repo.vfs.readdir(shelvedir):
605 for _mtime, name in listshelves(repo):
606 suffix = name.rsplit(b'.', 1)[-1]
606 for suffix in shelvefileextensions:
607 if suffix in shelvefileextensions:
607 shfile = shelvedfile(repo, name, suffix)
608 shelvedfile(repo, name).movetobackup()
608 if shfile.exists():
609 shfile.movetobackup()
609 cleanupoldbackups(repo)
610 cleanupoldbackups(repo)
610
611
611
612
General Comments 0
You need to be logged in to leave comments. Login now