hgext/obsolete.py
branchstable
changeset 338 b922d144f93d
parent 337 ebfd1b96a013
child 339 3853061e7fea
equal deleted inserted replaced
337:ebfd1b96a013 338:b922d144f93d
   940 
   940 
   941 def reposetup(ui, repo):
   941 def reposetup(ui, repo):
   942     if not repo.local():
   942     if not repo.local():
   943         return
   943         return
   944 
   944 
       
   945     if not util.safehasattr(repo.opener, 'tryread'):
       
   946         raise util.Abort('Obsolete extension require Mercurial 2.2 (or later)')
   945     opull = repo.pull
   947     opull = repo.pull
   946     opush = repo.push
   948     opush = repo.push
   947     olock = repo.lock
   949     olock = repo.lock
   948     o_rollback = repo._rollback
   950     o_rollback = repo._rollback
   949     o_updatebranchcache = repo.updatebranchcache
   951     o_updatebranchcache = repo.updatebranchcache