comparison dot_hgrc @ 1080:69ab3fcec57a draft

feat: highlight nodes based on stack state
author Zeger Van de Vannet <zeger@vandevan.net>
date Fri, 21 Feb 2025 10:34:21 +0100
parents 841ee6509f68
children
comparison
equal deleted inserted replaced
1079:6b04ecaaff0f 1080:69ab3fcec57a
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 stack_state = '{ifcontains("current", state, ifeq(state, "current", state, sub("current ?", "", state)), state)}'
120 stack_label = '{ifcontains("current", state, "current", ifcontains("content divergent", state, "orphan", ifcontains("orphan", state, "orphan", state)))}'
120 121
121 [templates] 122 [templates]
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' 123 oneline_stack = '{pad("{label("stack.index", "s{stack_index}")}{label("stack.state.{state}", symbol)}", 5, left=True)} {label("stack.state.{stack_label}", "{pad(stack_state, 8)} {node|short}")} {commitinfo}\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' 124 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'
124 125
125 [color] 126 [color]
126 mode=auto 127 mode=auto
127 128
148 incoming = incoming --template=oneline 149 incoming = incoming --template=oneline
149 in = incoming --template=oneline 150 in = incoming --template=oneline
150 outgoing = outgoing --template=oneline 151 outgoing = outgoing --template=oneline
151 out = outgoing --template=oneline 152 out = outgoing --template=oneline
152 mark = resolve --mark 153 mark = resolve --mark
154 pushall = !hg --config commands.push.require-revs=no push
153 155
154 [rhg] 156 [rhg]
155 on-unsupported = fallback 157 on-unsupported = fallback
156 fallback-executable = /usr/bin/hg 158 fallback-executable = /usr/bin/hg
157 allowed-extensions = rebase, absorb, evolve, topic 159 allowed-extensions = rebase, absorb, evolve, topic