comparison dot_hgrc @ 1072:240d435b7443

feat: remove "current" keyword from stack state when the change is orphaned
author Zeger Van de Vannet <zeger@vandevan.net>
date Mon, 10 Feb 2025 17:55:14 +0100
parents b2854e8f8d5d
children 714124edd757
comparison
equal deleted inserted replaced
1071:b2854e8f8d5d 1072:240d435b7443
114 HG: Everything below will be removed. 114 HG: Everything below will be removed.
115 {diff()} 115 {diff()}
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 stack_state = '{ifcontains("current", state, ifeq(state, "current", state, sub("current ", "", state)), state)}'
119 120
120 [templates] 121 [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))} {label("changeset.{phase}", node|short)} {commitinfo}\n' 122 oneline_stack = '{pad("{label("stack.index", "s{stack_index}")}{label("stack.state.{state}", symbol)}", 5, left=True)} {label("stack.state.{state}", pad(stack_state, 8))} {label("stack.state.{state}", 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' 123 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 124
124 [color] 125 [color]
125 mode=auto 126 mode=auto
126 127