diff hgext3rd/topic/__init__.py @ 6118:5d1bfde39b95 stable

topic: also make histedit clear the current topic if needed
author Simon Sapin <simon.sapin@octobus.net>
date Fri, 07 Jan 2022 18:06:46 +0100
parents a27bdd116761
children 74665d83fb3b
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Fri Jan 07 17:52:34 2022 +0100
+++ b/hgext3rd/topic/__init__.py	Fri Jan 07 18:06:46 2022 +0100
@@ -749,9 +749,7 @@
     topic = None
     if util.safehasattr(rulectx, 'topic'):
         topic = rulectx.topic()
-
-    if topic:
-        _changecurrenttopic(repo, topic)
+    _changecurrenttopic(repo, topic)
 
 
 # revset predicates are automatically registered at loading via this symbol