changeset 50429:71a2c061865d

strip: drop the assert about bundled revision This is working well, so no need for extract computation. See the previous changeset for the rationnal of still have these assert around for a short interval.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 10 Mar 2023 03:41:18 +0100
parents 7a017cd07a1e
children 386737600689
files mercurial/repair.py
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/repair.py	Thu Mar 09 15:06:59 2023 +0100
+++ b/mercurial/repair.py	Fri Mar 10 03:41:18 2023 +0100
@@ -360,13 +360,8 @@
     def to_nodes(revs):
         return [to_node(r) for r in revs]
 
-    simpler_bases = to_nodes(
-        unfi.revs("roots(%ln::%ln)", stripbases, stripbases)
-    )
     bases = to_nodes(unfi.revs("roots(%ld)", all_backup))
     heads = to_nodes(unfi.revs("heads(%ld)", all_backup))
-    assert bases == simpler_bases
-    assert set(heads).issubset(set(repo.changelog.heads()))
     backupfile = backupbundle(repo, bases, heads, node, topic)
     repo.ui.status(_(b"saved backup bundle to %s\n") % vfs.join(backupfile))
     repo.ui.log(