# HG changeset patch # User Anton Shestakov # Date 1724591936 -14400 # Node ID dee7d1e2b559ad1bdf266a49050d58bf8672e1ce # Parent 0a1ed671eb7adc571ef93b2c601aa80cfc702d4d 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. diff -r 0a1ed671eb7a -r dee7d1e2b559 hgext3rd/topic/stack.py --- 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()),