# HG changeset patch # User David Douard # Date 1341581941 -7200 # Node ID b922d144f93d218aecdb1be4db93c998f44ed6a7 # Parent ebfd1b96a013b41b99b93360759e803e89207432 obsolete: we are not compatible with 2.1 any more diff -r ebfd1b96a013 -r b922d144f93d 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