# HG changeset patch # User Anton Shestakov # Date 1653406227 -14400 # Node ID a433fe0cea21401c6f13c05a96b9fddfb14753d3 # Parent 85abf58c3d8cb2b6d72d279b975888479e1d5a62 topic: add ctx.fqbn() method It will be tested in the next commit via {fqbn} template keyword. diff -r 85abf58c3d8c -r a433fe0cea21 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Wed May 04 15:55:34 2022 +0400 +++ b/hgext3rd/topic/__init__.py Tue May 24 19:30:27 2022 +0400 @@ -341,6 +341,14 @@ return None context.basectx.topicidx = _contexttopicidx +def _contextfqbn(self): + """return branch//namespace/topic of the changeset, also known as fully + qualified branch name + """ + return common.formatfqbn(self.branch(), self.topic_namespace(), self.topic()) + +context.basectx.fqbn = _contextfqbn + stackrev = re.compile(br'^s\d+$') topicrev = re.compile(br'^t\d+$')