##// END OF EJS Templates
undo-files: also remove the undo.backupfiles...
marmoute -
r51186:cd680b45 stable
parent child Browse files
Show More
@@ -119,7 +119,10 b' def cleanup_undo_files(repo):'
119 This is useful to prevent rollback running in situation were it does not
119 This is useful to prevent rollback running in situation were it does not
120 make sense. For example after a strip.
120 make sense. For example after a strip.
121 """
121 """
122 for undovfs, undofile in repo.undofiles():
122 # XXX need to remove the backups themselve too
123 undo_files = [(repo.svfs, b'undo.backupfiles')]
124 undo_files.extend(repo.undofiles())
125 for undovfs, undofile in undo_files:
123 try:
126 try:
124 undovfs.unlink(undofile)
127 undovfs.unlink(undofile)
125 except OSError as e:
128 except OSError as e:
General Comments 0
You need to be logged in to leave comments. Login now