changeset 6541:09fb1cfb5adc

topic: update hg debug-topic-namespace to treat "none" as the empty value Follow-up for 963471ebe26a.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 27 Jul 2023 16:37:09 -0300
parents 45689da4ed41
children ca1c219bd59f
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Fri Jul 14 15:54:51 2023 -0300
+++ b/hgext3rd/topic/__init__.py	Thu Jul 27 16:37:09 2023 -0300
@@ -1783,7 +1783,7 @@
         scmutil.checknewlabel(repo, tns, b'topic namespace')
     ctns = repo.currenttns
     _changecurrenttns(repo, tns)
-    if ctns == b'none' and tns:
+    if ctns == b'none' and tns != b'none':
         repo.ui.status(_(b'marked working directory as topic namespace: %s\n')
                        % tns)