# HG changeset patch # User Anton Shestakov # Date 1657288188 -14400 # Node ID 63d6cc96557cc2ef2c13c29654a13ea717902497 # Parent 1eb543272657baf0e124db38ce4940677a6bfd90 topic: get branch from extra data in ctx.fqbn() At some point ctx.branch() will be wrapped to return ctx.fqbn() and this patch lets us avoid infinite recursion. diff -r 1eb543272657 -r 63d6cc96557c hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Mon Jun 27 19:02:25 2022 +0400 +++ b/hgext3rd/topic/__init__.py Fri Jul 08 17:49:48 2022 +0400 @@ -345,7 +345,8 @@ """return branch//namespace/topic of the changeset, also known as fully qualified branch name """ - return common.formatfqbn(self.branch(), self.topic_namespace(), self.topic()) + branch = encoding.tolocal(self.extra()[b'branch']) + return common.formatfqbn(branch, self.topic_namespace(), self.topic()) context.basectx.fqbn = _contextfqbn