strip: drop the assert about bundled revision
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 10 Mar 2023 03:41:18 +0100
changeset 50314 71a2c061865d
parent 50313 7a017cd07a1e
child 50315 386737600689
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.
mercurial/repair.py
--- 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(