# HG changeset patch # User Anton Shestakov # Date 1726749089 -14400 # Node ID 4dbbd7b4682ba9c8d242d50a020a94216101e21f # Parent 9af9b8630ef3a6638750eb98189b45ff821dabc1 topic: use dirstate.fqbn() instead of assembling all the components by hand diff -r 9af9b8630ef3 -r 4dbbd7b4682b hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Sun Oct 06 20:29:03 2024 +0400 +++ b/hgext3rd/topic/__init__.py Thu Sep 19 16:31:29 2024 +0400 @@ -775,12 +775,7 @@ def branchheads(self, branch=None, start=None, closed=False): if branch is None: - # using dirstate.branch() instead of self[None].branch() - # because we wrap context.branch method to return branch - # already in FQBN format, and we can't give it to formatfqbn() - # again directly - branch = self.dirstate.branch() - branch = common.formatfqbn(branch, self.currenttns, self.currenttopic) + branch = self.dirstate.fqbn() return super(topicrepo, self).branchheads(branch=branch, start=start, closed=closed)