comparison hgext3rd/topic/__init__.py @ 6489:71a8d4db4f55

topic: don't show "none" in the list of topic namespaces
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 23 May 2023 11:09:06 -0300
parents 963471ebe26a
children fba501baf5cb
comparison
equal deleted inserted replaced
6488:3f30aaa067ba 6489:71a8d4db4f55
566 566
567 @property 567 @property
568 def topic_namespaces(self): 568 def topic_namespaces(self):
569 if self._topic_namespaces is not None: 569 if self._topic_namespaces is not None:
570 return self._topic_namespaces 570 return self._topic_namespaces
571 namespaces = set([self.currenttns]) 571 namespaces = set([b'none', self.currenttns])
572 for c in self.set(b'not public()'): 572 for c in self.set(b'not public()'):
573 namespaces.add(c.topic_namespace()) 573 namespaces.add(c.topic_namespace())
574 namespaces.remove(b'none')
574 self._topic_namespaces = namespaces 575 self._topic_namespaces = namespaces
575 return namespaces 576 return namespaces
576 577
577 @property 578 @property
578 def currenttns(self): 579 def currenttns(self):