mercurial/repair.py
branchstable
changeset 50278 cd680b45a920
parent 50276 8011017629be
child 50282 4bcb91c8b9d8
--- a/mercurial/repair.py	Mon Mar 06 13:02:16 2023 +0100
+++ b/mercurial/repair.py	Mon Mar 06 13:05:08 2023 +0100
@@ -119,7 +119,10 @@
     This is useful to prevent rollback running in situation were it does not
     make sense. For example after a strip.
     """
-    for undovfs, undofile in repo.undofiles():
+    # XXX need to remove the backups themselve too
+    undo_files = [(repo.svfs, b'undo.backupfiles')]
+    undo_files.extend(repo.undofiles())
+    for undovfs, undofile in undo_files:
         try:
             undovfs.unlink(undofile)
         except OSError as e: