Mercurial > evolve
diff hgext/obsolete.py @ 489:fdf3ae486e01
Fix mercurial version check
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Thu, 23 Aug 2012 18:19:42 +0200 |
parents | 2111c655b4f5 |
children | 8096833e9226 |
line wrap: on
line diff
--- 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)')