[PATCH evolve-ext] legacy: drop the check for `obsolete._enabled`

Matt Harbison mharbison72 at gmail.com
Tue Apr 30 03:18:23 UTC 2019


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1556594189 14400
#      Mon Apr 29 23:16:29 2019 -0400
# Node ID 6ee8b75ac34337d13309044cd1fd6cbf13de0ff1
# Parent  5c913f7081b36f71c3678f3686f89d5365e7bdeb
legacy: drop the check for `obsolete._enabled`

This looks like an ancient version check, and presumably `minimumhgversion` will
do the same thing.

diff --git a/hgext3rd/evolve/legacy.py b/hgext3rd/evolve/legacy.py
--- a/hgext3rd/evolve/legacy.py
+++ b/hgext3rd/evolve/legacy.py
@@ -15,12 +15,6 @@
 
 from mercurial import error
 
-try:
-    from mercurial import obsolete
-    obsolete._enabled
-except ImportError:
-    raise error.Abort('Obsolete extension requires Mercurial 2.3 (or later)')
-
 import sys
 import json
 


More information about the Mercurial-devel mailing list