Show More
@@ -177,7 +177,7 b' def capabilities(orig, repo, proto):' | |||
|
177 | 177 | # Only advertise if a manifest exists. This does add some I/O to requests. |
|
178 | 178 | # But this should be cheaper than a wasted network round trip due to |
|
179 | 179 | # missing file. |
|
180 |
if repo. |
|
|
180 | if repo.vfs.exists('clonebundles.manifest'): | |
|
181 | 181 | caps.append('clonebundles') |
|
182 | 182 | |
|
183 | 183 | return caps |
@@ -736,7 +736,7 b' def clonebundles(repo, proto):' | |||
|
736 | 736 | depending on the request. e.g. you could advertise URLs for the closest |
|
737 | 737 | data center given the client's IP address. |
|
738 | 738 | """ |
|
739 |
return repo. |
|
|
739 | return repo.vfs.tryread('clonebundles.manifest') | |
|
740 | 740 | |
|
741 | 741 | wireprotocaps = ['lookup', 'changegroupsubset', 'branchmap', 'pushkey', |
|
742 | 742 | 'known', 'getbundle', 'unbundlehash', 'batch'] |
General Comments 0
You need to be logged in to leave comments.
Login now