Mercurial > evolve
changeset 6837:dee7d1e2b559
topic: stack index prefix is always "s" now
We used to have a different prefix for topic stacks ("t"), but that's no longer
the case.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 25 Aug 2024 17:18:56 +0400 |
parents | 0a1ed671eb7a |
children | 514babbbe282 |
files | hgext3rd/topic/stack.py |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py Fri Aug 02 16:36:40 2024 +0400 +++ b/hgext3rd/topic/stack.py Sun Aug 25 17:18:56 2024 +0400 @@ -238,12 +238,9 @@ msg %= (branch, topic) raise error.ProgrammingError(msg) elif topic is not None: - prefix = b's' if topic not in repo.topics: raise error.Abort(_(b'cannot resolve "%s": no such topic found') % topic) - elif branch is not None: - prefix = b's' - else: + elif branch is None: raise error.ProgrammingError(b'neither branch and topic specified (not defined yet)') fm = ui.formatter(b'topicstack', opts) @@ -379,7 +376,7 @@ spacewidth += 2 fm.plain(b' ' * spacewidth) else: - fm.write(b'stack_index', b'%s%%d' % prefix, idx, + fm.write(b'stack_index', b's%d', idx, label=labelsgen(b'stack.index', states)) if ui.verbose: fm.write(b'node', b'(%s)', fm.hexfunc(ctx.node()),