Mercurial > hg
comparison mercurial/repair.py @ 50288:d89eecf9605e stable
undo-files: no longer pass the `repo` to `cleanup_undo_files`
As foretold in the previous changesets, we no longer need a full repository
object here.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 06 Mar 2023 22:16:28 +0100 |
parents | 3d0b5760851c |
children | c5e93c915ab6 |
comparison
equal
deleted
inserted
replaced
50287:7ce9862fca7c | 50288:d89eecf9605e |
---|---|
257 | 257 |
258 with repo.transaction(b'repair') as tr: | 258 with repo.transaction(b'repair') as tr: |
259 bmchanges = [(m, repo[newbmtarget].node()) for m in updatebm] | 259 bmchanges = [(m, repo[newbmtarget].node()) for m in updatebm] |
260 repo._bookmarks.applychanges(repo, tr, bmchanges) | 260 repo._bookmarks.applychanges(repo, tr, bmchanges) |
261 | 261 |
262 transaction.cleanup_undo_files(repo) | 262 transaction.cleanup_undo_files(repo.ui.warn, repo.vfs_map) |
263 | 263 |
264 except: # re-raises | 264 except: # re-raises |
265 if backupfile: | 265 if backupfile: |
266 ui.warn( | 266 ui.warn( |
267 _(b"strip failed, backup bundle stored in '%s'\n") | 267 _(b"strip failed, backup bundle stored in '%s'\n") |