equal
deleted
inserted
replaced
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): |