comparison 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
comparison
equal deleted inserted replaced
1066:9e85515dbe4f 1071:b2854e8f8d5d
116 116
117 [templatealias] 117 [templatealias]
118 commitinfo = '{date|shortdate} {pad(label("grep.user", author|person), 25, left=True, truncate=True)} {desc|strip|firstline}' 118 commitinfo = '{date|shortdate} {pad(label("grep.user", author|person), 25, left=True, truncate=True)} {desc|strip|firstline}'
119 119
120 [templates] 120 [templates]
121 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' 121 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'
122 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' 122 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'
123 123
124 [color] 124 [color]
125 mode=auto 125 mode=auto
126 126
136 136
137 desc.here=green_background black 137 desc.here=green_background black
138 stack.state = red 138 stack.state = red
139 139
140 [alias] 140 [alias]
141 stack = stack --color=always --template=oneline_stack
141 node = parent --template '{node}' 142 node = parent --template '{node}'
142 ls = log --template=oneline --limit=50 --pager=auto 143 ls = log --template=oneline --limit=50 --pager=auto
143 stack = stack --color=always --template=oneline_stack
144 status = status -mard 144 status = status -mard
145 st = status -mard 145 st = status -mard
146 stat = status -mard 146 stat = status -mard
147 incoming = incoming --template=oneline 147 incoming = incoming --template=oneline
148 in = incoming --template=oneline 148 in = incoming --template=oneline