hgrc: fix smartlogstart

This commit is contained in:
Luke Granger-Brown 2020-06-18 00:20:00 +01:00
parent f3d1fee59d
commit 1506327979

View file

@ -14,10 +14,10 @@ xl = log -r 'smartlog()'
[revsetalias]
# We're interested in the current commit, and any non-extinct commits in the draft or secret phases.
smartlogstart() = . | ((draft() | secret()) - extinct())
nonpublic() = not public() and not obsolete()
smartlogstart() = (parents(nonpublic()) or nonpublic() or . or head()) and (not obsolete() or unstable()^) and not closed()
# Now expand smartlogstart to go up to the parent public commit.
publichead(r1) = ancestors(r1) - (descendants(public(), 1) and public())
smartlogstart() = (parents(not public()) or not public() or . or head()) and (not obsolete() or unstable()^) and not closed()
smartlog() = publichead(smartlogstart())::smartlogstart() | smartlogstart()
[color]