Show More
@@ -602,10 +602,11 b' def cleanupcmd(ui, repo):' | |||
|
602 | 602 | """subcommand that deletes all shelves""" |
|
603 | 603 | |
|
604 | 604 | with repo.wlock(): |
|
605 | for (name, _type) in repo.vfs.readdir(shelvedir): | |
|
606 | suffix = name.rsplit(b'.', 1)[-1] | |
|
607 | if suffix in shelvefileextensions: | |
|
608 | shelvedfile(repo, name).movetobackup() | |
|
605 | for _mtime, name in listshelves(repo): | |
|
606 | for suffix in shelvefileextensions: | |
|
607 | shfile = shelvedfile(repo, name, suffix) | |
|
608 | if shfile.exists(): | |
|
609 | shfile.movetobackup() | |
|
609 | 610 | cleanupoldbackups(repo) |
|
610 | 611 | |
|
611 | 612 |
General Comments 0
You need to be logged in to leave comments.
Login now