Pierre-Yves David avatar Pierre-Yves David committed 469befc

detect incompatibility with future mercurial 2.5

changes in bookmark break compatibility

Comments (0)

Files changed (2)

 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),
  ${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.
     - 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'
 
 
     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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.