diff -r fc035e5370ca -r 7c604d8c7e83 hgext/largefiles/proto.py --- a/hgext/largefiles/proto.py Tue Oct 11 23:16:05 2011 -0500 +++ b/hgext/largefiles/proto.py Tue Oct 11 10:42:56 2011 +0200 @@ -140,11 +140,7 @@ def heads(repo, proto): if lfutil.islfilesrepo(repo): - try: - # Mercurial >= f4522df38c65 - return wireproto.ooberror(LARGEFILES_REQUIRED_MSG) - except AttributeError: - return proto.refuseclient(LARGEFILES_REQUIRED_MSG) + return wireproto.ooberror(LARGEFILES_REQUIRED_MSG) return wireproto.heads(repo, proto) def sshrepo_callstream(self, cmd, **args):