obsolete: we are not compatible with 2.1 any more stable
authorDavid Douard <david.douard@logilab.fr>
Fri, 06 Jul 2012 15:39:01 +0200
branchstable
changeset 338 b922d144f93d
parent 337 ebfd1b96a013
child 339 3853061e7fea
obsolete: we are not compatible with 2.1 any more
hgext/obsolete.py
--- a/hgext/obsolete.py	Wed Jul 04 18:00:43 2012 +0200
+++ b/hgext/obsolete.py	Fri Jul 06 15:39:01 2012 +0200
@@ -942,6 +942,8 @@
     if not repo.local():
         return
 
+    if not util.safehasattr(repo.opener, 'tryread'):
+        raise util.Abort('Obsolete extension require Mercurial 2.2 (or later)')
     opull = repo.pull
     opush = repo.push
     olock = repo.lock