Mercurial > hg
comparison hgext/clonebundles.py @ 31146:16d8bec0177d
clonebundle: use 'repo.vfs' instead of 'repo.opener'
The later is a 5 years old form.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 02 Mar 2017 03:23:18 +0100 |
parents | d5883fd055c6 |
children | 702af1ad3b18 |
comparison
equal
deleted
inserted
replaced
31145:11a97785f75c | 31146:16d8bec0177d |
---|---|
175 caps = orig(repo, proto) | 175 caps = orig(repo, proto) |
176 | 176 |
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 |
184 | 184 |
185 def extsetup(ui): | 185 def extsetup(ui): |