Mercurial > public > mercurial-scm > hg-stable
diff mercurial/streamclone.py @ 50286:3d0b5760851c stable
undo-files: move the undo cleanup code in the transaction module
Now that undo creation is gathered in the transaction module, let us move the code cleaning them up there too.
This will be useful to better clean previous undo files up before creating new
ones.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 06 Mar 2023 21:03:45 +0100 |
parents | 97e91001a4e0 |
children | d89eecf9605e |
line wrap: on
line diff
--- a/mercurial/streamclone.py Mon Mar 06 19:39:35 2023 +0100 +++ b/mercurial/streamclone.py Mon Mar 06 21:03:45 2023 +0100 @@ -20,10 +20,10 @@ narrowspec, phases, pycompat, - repair, requirements as requirementsmod, scmutil, store, + transaction, util, ) from .revlogutils import ( @@ -932,4 +932,4 @@ dest_repo.store.write(tr) # clean up transaction file as they do not make sense - repair.cleanup_undo_files(dest_repo) + transaction.cleanup_undo_files(dest_repo)