equal
deleted
inserted
replaced
117 """remove "undo" files used by the rollback logic |
117 """remove "undo" files used by the rollback logic |
118 |
118 |
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: |
126 if e.errno != errno.ENOENT: |
129 if e.errno != errno.ENOENT: |
127 msg = _(b'error removing %s: %s\n') |
130 msg = _(b'error removing %s: %s\n') |