Mercurial > evolve
diff hgext3rd/topic/__init__.py @ 6552:81e89d943a4e
topic: pretend changeset has no topic namespace if it doesn't have a topic
We only need this in case commit extras have topic namespace and no topic.
Which is now prevented from happening by an earlier patch.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 20 Jun 2023 12:30:24 -0300 |
parents | e45bfd1e0588 |
children | abbba073aa88 |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Wed Sep 06 16:03:01 2023 -0300 +++ b/hgext3rd/topic/__init__.py Tue Jun 20 12:30:24 2023 -0300 @@ -316,6 +316,9 @@ # topic loaded, but not enabled (eg: multiple repo in the same process) if cache is None: return b'none' + # topic namespace is meaningless when topic is not set + if not self.topic(force): + return b'none' if self.rev() is None: # don't cache volatile ctx instances that aren't stored on-disk yet return self.extra().get(b'topic-namespace', b'none')