equal
deleted
inserted
replaced
600 |
600 |
601 def cleanupcmd(ui, repo): |
601 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 |
612 def deletecmd(ui, repo, pats): |
613 def deletecmd(ui, repo, pats): |
613 """subcommand that deletes a specific shelve""" |
614 """subcommand that deletes a specific shelve""" |