# HG changeset patch # User Pierre-Yves David # Date 1488474825 -3600 # Node ID d286222293c8764323cef86af2121a491ed4e26b # Parent 10d80adec0c2dcca37a0d46dd88ad6a83acda09e legacy: properly test for mercurial version in the legacy extensions Otherwise 'demandimport' would delay the raising of ImportError. diff -r 10d80adec0c2 -r d286222293c8 hgext3rd/evolve/legacy.py --- 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)')