diff dot_hgrc @ 1071:b2854e8f8d5d

feat: add hash to hg stack output
author Zeger Van de Vannet <zeger@vandevan.net>
date Mon, 10 Feb 2025 15:53:24 +0100
parents 9e85515dbe4f
children a089e90b567b
line wrap: on
line diff
--- a/dot_hgrc	Fri Sep 27 09:57:02 2024 +0200
+++ b/dot_hgrc	Mon Feb 10 15:53:24 2025 +0100
@@ -118,7 +118,7 @@
 commitinfo = '{date|shortdate} {pad(label("grep.user", author|person), 25, left=True, truncate=True)}  {desc|strip|firstline}'
 
 [templates]
-oneline_stack = '{pad("{label("stack.index", "s{stack_index}")}{label("stack.state.{state}", symbol)}", 5, left=True)} {label("stack.state.{state}", pad(state, 8))} {commitinfo}\n'
+oneline_stack = '{pad("{label("stack.index", "s{stack_index}")}{label("stack.state.{state}", symbol)}", 5, left=True)} {label("stack.state.{state}", pad(state, 8))} {label("changeset.{phase}", node|short)} {commitinfo}\n'
 oneline = '{ifcontains(graphnode, "x*", graphnode, ' ')} {label("changeset.{phase}", node|short)} {pad(label("log.branch", fqbn), 30, truncate=True)} {pad(commitinfo, termwidth - 50, truncate=True)}\n'
 
 [color]
@@ -138,9 +138,9 @@
 stack.state = red
 
 [alias]
+stack = stack --color=always --template=oneline_stack
 node = parent --template '{node}'
 ls = log --template=oneline --limit=50 --pager=auto
-stack = stack --color=always --template=oneline_stack
 status = status -mard
 st = status -mard
 stat = status -mard