comparison 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
comparison
equal deleted inserted replaced
15223:fc035e5370ca 15224:7c604d8c7e83
138 138
139 return '' 139 return ''
140 140
141 def heads(repo, proto): 141 def heads(repo, proto):
142 if lfutil.islfilesrepo(repo): 142 if lfutil.islfilesrepo(repo):
143 try: 143 return wireproto.ooberror(LARGEFILES_REQUIRED_MSG)
144 # Mercurial >= f4522df38c65
145 return wireproto.ooberror(LARGEFILES_REQUIRED_MSG)
146 except AttributeError:
147 return proto.refuseclient(LARGEFILES_REQUIRED_MSG)
148 return wireproto.heads(repo, proto) 144 return wireproto.heads(repo, proto)
149 145
150 def sshrepo_callstream(self, cmd, **args): 146 def sshrepo_callstream(self, cmd, **args):
151 if cmd == 'heads' and self.capable('largefiles'): 147 if cmd == 'heads' and self.capable('largefiles'):
152 cmd = 'lheads' 148 cmd = 'lheads'