Mercurial > hg-stable
changeset 42275:e10b8058da84
repair: reword comment about bookmarks logic
Again, this will help auto-formatting shortly.
Differential Revision: https://phab.mercurial-scm.org/D6340
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 03 May 2019 15:46:09 -0400 |
parents | d26bfbf419f9 |
children | 970aaf38c3fc |
files | mercurial/repair.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py Fri May 03 15:42:13 2019 -0400 +++ b/mercurial/repair.py Fri May 03 15:46:09 2019 -0400 @@ -279,7 +279,9 @@ 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)