Mercurial > public > mercurial-scm > hg
diff mercurial/repair.py @ 50396:bcf54837241d
bundle: prevent implicite bundling of internal changeset
Now that the two mains source of on-disk bundle are preventing the inclusion of
internal changesets in their bundling. We can add a lower level check that
would prevent any other leakage of internal-phase changesets.
We keep the door open to some usage, like the temporary bundle using during
strip for example.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 08 Mar 2023 11:01:11 +0100 |
parents | f24c2e42e654 |
children | c5e93c915ab6 |
line wrap: on
line diff
--- a/mercurial/repair.py Fri Mar 10 07:19:25 2023 +0100 +++ b/mercurial/repair.py Wed Mar 08 11:01:11 2023 +0100 @@ -36,7 +36,14 @@ def backupbundle( - repo, bases, heads, node, suffix, compress=True, obsolescence=True + repo, + bases, + heads, + node, + suffix, + compress=True, + obsolescence=True, + tmp_backup=False, ): """create a bundle with the specified revisions as a backup""" @@ -83,6 +90,7 @@ contentopts, vfs, compression=comp, + allow_internal=tmp_backup, ) @@ -199,6 +207,7 @@ b'temp', compress=False, obsolescence=False, + tmp_backup=True, ) with ui.uninterruptible():