comparison hgext/narrow/narrowbundle2.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 d718eddf01d9
comparison
equal deleted inserted replaced
50287:7ce9862fca7c 50288:d89eecf9605e
292 repo, b'strip', b'bundle:' + vfs.join(chgrpfile), True 292 repo, b'strip', b'bundle:' + vfs.join(chgrpfile), True
293 ) 293 )
294 finally: 294 finally:
295 f.close() 295 f.close()
296 296
297 transaction.cleanup_undo_files(repo) 297 transaction.cleanup_undo_files(repo.ui.warn, repo.vfs_map)
298 298
299 # Remove partial backup only if there were no exceptions 299 # Remove partial backup only if there were no exceptions
300 op._widen_uninterr.__exit__(None, None, None) 300 op._widen_uninterr.__exit__(None, None, None)
301 vfs.unlink(chgrpfile) 301 vfs.unlink(chgrpfile)
302 302