diff hgext/largefiles/proto.py @ 15224:7c604d8c7e83

largefiles: remove pre-1.9 code from extension first bundled with 1.9
author Na'Tosha Bard <natosha@unity3d.com>
date Tue, 11 Oct 2011 10:42:56 +0200
parents c1a4a3220711
children 6e809bb4f969
line wrap: on
line diff
--- 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):