legacy: properly test for mercurial version in the legacy extensions
Otherwise 'demandimport' would delay the raising of ImportError.
--- a/hgext3rd/evolve/legacy.py Thu Mar 02 18:13:20 2017 +0100
+++ b/hgext3rd/evolve/legacy.py Thu Mar 02 18:13:45 2017 +0100
@@ -17,6 +17,7 @@
try:
from mercurial import obsolete
+ obsolete._enabled
except ImportError:
raise error.Abort('Obsolete extension requires Mercurial 2.3 (or later)')