# HG changeset patch # User Pierre-Yves David # Date 1353492860 -3600 # Node ID 469befc27b26e7bda577d311f72a8d6156c8c8c7 # Parent 279403a125653b3f5aedcd00e607da2d81e87e36 detect incompatibility with future mercurial 2.5 changes in bookmark break compatibility diff -r 279403a12565 -r 469befc27b26 debian/control --- a/debian/control Wed Nov 21 11:05:51 2012 +0100 +++ b/debian/control Wed Nov 21 11:14:20 2012 +0100 @@ -8,7 +8,9 @@ Standards-Version: 3.9.3 Build-Depends: mercurial (>=2.4~), + mercurial (<<2.5), mercurial-common (>=2.4~), + mercurial-common (<<2.5), python, debhelper (>= 8), python-sphinx (>= 1.0.8), @@ -23,6 +25,7 @@ ${python:Depends}, ${misc:Depends}, mercurial (>= 2.4), + mercurial (<<2.5), Description: evolve extension for Mercurial This package provides the experimental "evolve" extension for the Mercurial DVCS. diff -r 279403a12565 -r 469befc27b26 hgext/evolve.py --- 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