Fix mercurial version check
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 23 Aug 2012 18:19:42 +0200
changeset 489 fdf3ae486e01
parent 487 595ae87e94b6
child 490 8096833e9226
Fix mercurial version check
hgext/obsolete.py
--- a/hgext/obsolete.py	Thu Aug 23 18:01:28 2012 +0200
+++ b/hgext/obsolete.py	Thu Aug 23 18:19:42 2012 +0200
@@ -44,7 +44,8 @@
 
 try:
     from mercurial import obsolete
-    obsolete._enabled = True
+    if not obsolete._enabled:
+        obsolete._enabled = True
 except ImportError:
     raise util.Abort('Obsolete extension requires Mercurial 2.3 (or later)')