# HG changeset patch # User Anton Shestakov # Date 1724594137 -14400 # Node ID 12a031f3587fa051bb1501c3ed367e675c8c26f2 # Parent 514babbbe282435f646e4ccaad5e1c3129cc3f30 topic: remove obsolete "b" prefix recognition diff -r 514babbbe282 -r 12a031f3587f hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Sun Aug 25 17:22:40 2024 +0400 +++ b/hgext3rd/topic/__init__.py Sun Aug 25 17:55:37 2024 +0400 @@ -575,7 +575,7 @@ else: # hg <= 5.5 (2c86b9587740) extensions.wrapfunction(merge, 'update', mergeupdatewrap) - # We need to check whether t0 or b0 or s0 is passed to override the default update + # We need to check whether t0 or s0 is passed to override the default update # behaviour of changing topic and I can't find a better way # to do that as scmutil.revsingle returns the rev number and hence we can't # plug into logic for this into mergemod.update(). @@ -1739,7 +1739,7 @@ def checkt0(orig, ui, repo, node=None, rev=None, *args, **kwargs): - thezeros = set([b't0', b'b0', b's0']) + thezeros = set([b't0', b's0']) configoverride = util.nullcontextmanager() if node in thezeros or rev in thezeros: configoverride = repo.ui.configoverride({ diff -r 514babbbe282 -r 12a031f3587f hgext3rd/topic/stack.py --- a/hgext3rd/topic/stack.py Sun Aug 25 17:22:40 2024 +0400 +++ b/hgext3rd/topic/stack.py Sun Aug 25 17:55:37 2024 +0400 @@ -288,9 +288,9 @@ for idx, r in enumerate(st, 0): ctx = repo[r] - # special case for t0, b0 as it's hard to plugin into rest of the logic + # special case for t0, s0 as it's hard to plug into rest of the logic if idx == 0: - # t0, b0 can be None + # t0, s0 can be null changeset if r == -1: continue entries.append((idx, False, ctx))