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