add revset alias and change default log revset

This commit is contained in:
Daylin Morgan 2025-01-14 15:01:23 -06:00
parent 94919e5319
commit 76e63ef6a0
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -30,7 +30,7 @@ bsm = [
l = ["log", "-T", "log_oneline"]
[revsets]
log = "present(@) | ancestors(immutable_heads().., 3) | present(trunk())"
log = '@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()'
# default
# log = "present(@) | ancestors(immutable_heads().., 2) | present(trunk())"
@ -60,3 +60,5 @@ if(root,
)
'''
[revset-aliases]
"heads()" = '@ | ancestors(trunk()..(visible_heads()), 2) | trunk()'