changeset 6535:d324fa553620

topic: check if tns is "none" in one more place This is not strictly needed, because it's calling _changecurrenttns(), which checks tns to be "none" anyway, but let's do this for consistency.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 17 Jul 2023 16:20:16 -0300
parents 43a1bacf6a14
children 80d5d4e587f7
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Mon Jul 17 16:17:39 2023 -0300
+++ b/hgext3rd/topic/__init__.py	Mon Jul 17 16:20:16 2023 -0300
@@ -1699,7 +1699,7 @@
     original(repo, ui, prev, ctx)
 
     # Restore the topic if need
-    if tns:
+    if tns != b'none':
         _changecurrenttns(repo, tns)
     if topic:
         _changecurrenttopic(repo, topic)