# HG changeset patch # User Anton Shestakov # Date 1726750128 -14400 # Node ID 6209891ff2208a8c20c307769e212d86d09e8037 # Parent 4dbbd7b4682ba9c8d242d50a020a94216101e21f topic: add `short` keyword argument to callers of common.formatfqbn() The default value (True) is the same as in common.formatfqbn(). diff -r 4dbbd7b4682b -r 6209891ff220 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Thu Sep 19 16:31:29 2024 +0400 +++ b/hgext3rd/topic/__init__.py Thu Sep 19 16:48:48 2024 +0400 @@ -380,12 +380,12 @@ return None context.basectx.topicidx = _contexttopicidx -def _contextfqbn(self): +def _contextfqbn(self, short=True): """return branch//namespace/topic of the changeset, also known as fully qualified branch name """ branch = encoding.tolocal(self.extra()[b'branch']) - return common.formatfqbn(branch, self.topic_namespace(), self.topic()) + return common.formatfqbn(branch, self.topic_namespace(), self.topic(), short=short) context.basectx.fqbn = _contextfqbn @@ -974,11 +974,11 @@ if ce: ce.refresh() - def fqbn(self): + def fqbn(self, short=True): branch = encoding.tolocal(self._branch) tns = encoding.tolocal(self._tns) topic = encoding.tolocal(self._topic) - return common.formatfqbn(branch, tns, topic) + return common.formatfqbn(branch, tns, topic, short=short) dirstate.dirstate = topicdirstate