changeset 6874:4dbbd7b4682b

topic: use dirstate.fqbn() instead of assembling all the components by hand
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 19 Sep 2024 16:31:29 +0400
parents 9af9b8630ef3
children 6209891ff220
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)