comparison hgext3rd/topic/__init__.py @ 6880:906b5af0b2a6

topic: use FQBN for displaying topic name when it grows multiple changesets
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 17 Sep 2024 21:17:56 +0400
parents 9da0114a8a02
children 361dcfcb3f08
comparison
equal deleted inserted replaced
6879:9da0114a8a02 6880:906b5af0b2a6
909 if csetcount == 1: 909 if csetcount == 1:
910 msg = _(b"active topic '%s' grew its first changeset\n%s") 910 msg = _(b"active topic '%s' grew its first changeset\n%s")
911 ui.status(msg % (ui.label(cfqbn, b'topic.active'), hint)) 911 ui.status(msg % (ui.label(cfqbn, b'topic.active'), hint))
912 else: 912 else:
913 msg = _(b"active topic '%s' grew its %d first changesets\n%s") 913 msg = _(b"active topic '%s' grew its %d first changesets\n%s")
914 ui.status(msg % (ui.label(ct, b'topic.active'), csetcount, hint)) 914 ui.status(msg % (ui.label(cfqbn, b'topic.active'), csetcount, hint))
915 915
916 tr.addpostclose(b'signalcurrenttopicempty', currenttopicempty) 916 tr.addpostclose(b'signalcurrenttopicempty', currenttopicempty)
917 return tr 917 return tr
918 918
919 repo.__class__ = topicrepo 919 repo.__class__ = topicrepo