# HG changeset patch # User Augie Fackler # Date 2019-05-03 19:46:09 # Node ID e10b8058da84131c5efcccfc7ab6ffc8f82c6d2f # Parent d26bfbf419f91f946b7d8c7b4d08446f8f41b457 repair: reword comment about bookmarks logic Again, this will help auto-formatting shortly. Differential Revision: https://phab.mercurial-scm.org/D6340 diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -279,7 +279,9 @@ def _bookmarkmovements(repo, tostrip): if rev in tostrip: updatebm.append(m) newbmtarget = None - if updatebm: # don't compute anything is there is no bookmark to move anyway + # If we need to move bookmarks, compute bookmark + # targets. Otherwise we can skip doing this logic. + if updatebm: # For a set s, max(parents(s) - s) is the same as max(heads(::s - s)), # but is much faster newbmtarget = repo.revs('max(parents(%ld) - (%ld))', tostrip, tostrip)