hgext/largefiles/proto.py
changeset 15224 7c604d8c7e83
parent 15170 c1a4a3220711
child 15252 6e809bb4f969
--- 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):