diff -r c3c7a86e9c24 -r beaa233e81f7 mercurial/repair.py --- a/mercurial/repair.py Fri Feb 12 12:51:28 2021 +0100 +++ b/mercurial/repair.py Wed Feb 10 09:45:48 2021 -0800 @@ -308,11 +308,11 @@ if not tostrip: return None - newbmtarget, updatebm = _bookmarkmovements(repo, tostrip) if backup: node = tostrip[0] backupfile = _createstripbackup(repo, tostrip, node, topic) + newbmtarget, updatebm = _bookmarkmovements(repo, tostrip) with repo.transaction(b'strip') as tr: phases.retractboundary(repo, tr, phases.archived, tostrip) bmchanges = [(m, repo[newbmtarget].node()) for m in updatebm]