hgext3rd/evolve/__init__.py
changeset 3456 b03d955e391e
parent 3453 32ed5b6fadd3
parent 3455 f7ecb11d71bb
child 3457 82e9f9603b1b
--- a/hgext3rd/evolve/__init__.py	Thu Jan 25 17:29:21 2018 -0800
+++ b/hgext3rd/evolve/__init__.py	Fri Jan 26 17:55:16 2018 +0100
@@ -696,7 +696,8 @@
     ui.warn(msg % shortnode)
 
     # Check that evolve is activated for performance reasons
-    if ui.quiet or not obsolete.isenabled(repo, commandopt):
+    evolvecommandenabled = any('evolve' in e for e in cmdtable)
+    if ui.quiet or not evolvecommandenabled:
         return
 
     # Show a warning for helping the user to solve the issue