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