From 1506327979c3002e3c9e9d9ad5bf5c9a808b6688 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 18 Jun 2020 00:20:00 +0100 Subject: [PATCH] hgrc: fix smartlogstart --- ops/nixos/lib/hgrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/nixos/lib/hgrc b/ops/nixos/lib/hgrc index 50acf92ef8..c3b80883bf 100644 --- a/ops/nixos/lib/hgrc +++ b/ops/nixos/lib/hgrc @@ -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]