mercurial/wireproto.py
branchstable
changeset 26857 e5a1df51bb25
parent 26690 704818fb170d
child 26911 d7e5e4da8394
equal deleted inserted replaced
26856:baa77652be68 26857:e5a1df51bb25
   547     r = []
   547     r = []
   548     for b in repo.branches(nodes):
   548     for b in repo.branches(nodes):
   549         r.append(encodelist(b) + "\n")
   549         r.append(encodelist(b) + "\n")
   550     return "".join(r)
   550     return "".join(r)
   551 
   551 
       
   552 @wireprotocommand('clonebundles', '')
       
   553 def clonebundles(repo, proto):
       
   554     """Server command for returning info for available bundles to seed clones.
       
   555 
       
   556     Clients will parse this response and determine what bundle to fetch.
       
   557 
       
   558     Extensions may wrap this command to filter or dynamically emit data
       
   559     depending on the request. e.g. you could advertise URLs for the closest
       
   560     data center given the client's IP address.
       
   561     """
       
   562     return repo.opener.tryread('clonebundles.manifest')
   552 
   563 
   553 wireprotocaps = ['lookup', 'changegroupsubset', 'branchmap', 'pushkey',
   564 wireprotocaps = ['lookup', 'changegroupsubset', 'branchmap', 'pushkey',
   554                  'known', 'getbundle', 'unbundlehash', 'batch']
   565                  'known', 'getbundle', 'unbundlehash', 'batch']
   555 
   566 
   556 def _capabilities(repo, proto):
   567 def _capabilities(repo, proto):