Mercurial > public > mercurial-scm > evolve
diff hgext/evolve.py @ 617:469befc27b26 stable
detect incompatibility with future mercurial 2.5
changes in bookmark break compatibility
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Wed, 21 Nov 2012 11:14:20 +0100 |
parents | 279403a12565 |
children | c39afce52e31 e50a5d9a6cbf |
line wrap: on
line diff
--- a/hgext/evolve.py Wed Nov 21 11:05:51 2012 +0100 +++ b/hgext/evolve.py Wed Nov 21 11:14:20 2012 +0100 @@ -19,7 +19,7 @@ - improves some aspect of the early implementation in 2.3 ''' -testedwith = '2.4-rc' +testedwith = '2.4' buglink = 'https://bitbucket.org/marmoute/mutable-history/issues' @@ -33,7 +33,14 @@ if not obsolete._enabled: obsolete._enabled = True except (ImportError, AttributeError): - raise util.Abort('Evolve extension requires Mercurial 2.4 (or later)') + raise util.Abort('Evolve extension requires Mercurial 2.4.x') +try: + from mercurial import bookmarks + bookmarks.bmstore + raise util.Abort('This version of Evolve is too old for you mercurial version') +except AttributeError: + pass + from mercurial import bookmarks