# HG changeset patch # User Pierre-Yves David # Date 2017-03-02 02:23:18 # Node ID 16d8bec0177d9402ff0f015ec054ec21238fd9fb # Parent 11a97785f75cb69b6803758a367b8bebf46f257b clonebundle: use 'repo.vfs' instead of 'repo.opener' The later is a 5 years old form. diff --git a/hgext/clonebundles.py b/hgext/clonebundles.py --- a/hgext/clonebundles.py +++ b/hgext/clonebundles.py @@ -177,7 +177,7 @@ def capabilities(orig, repo, proto): # Only advertise if a manifest exists. This does add some I/O to requests. # But this should be cheaper than a wasted network round trip due to # missing file. - if repo.opener.exists('clonebundles.manifest'): + if repo.vfs.exists('clonebundles.manifest'): caps.append('clonebundles') return caps diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -736,7 +736,7 @@ def clonebundles(repo, proto): depending on the request. e.g. you could advertise URLs for the closest data center given the client's IP address. """ - return repo.opener.tryread('clonebundles.manifest') + return repo.vfs.tryread('clonebundles.manifest') wireprotocaps = ['lookup', 'changegroupsubset', 'branchmap', 'pushkey', 'known', 'getbundle', 'unbundlehash', 'batch']