# HG changeset patch # User Pierre-Yves David # Date 1670006041 -3600 # Node ID c4d587fa161cc1d679fa17d4d1e7e407f5e83376 # Parent 73ed1d13c0bf97cc4dabea0f2ebc97d40ac42744 peer: pass the `path` to the statichttp peer We now have all peer able to receive and store a `path` object. Hooray. diff -r 73ed1d13c0bf -r c4d587fa161c mercurial/statichttprepo.py --- a/mercurial/statichttprepo.py Sat Dec 03 06:16:58 2022 +0100 +++ b/mercurial/statichttprepo.py Fri Dec 02 19:34:01 2022 +0100 @@ -262,5 +262,5 @@ def make_peer(ui, path, create, intents=None, createopts=None): if create: raise error.Abort(_(b'cannot create new static-http repository')) - path = path.loc - return statichttprepository(ui, path[7:]).peer() + url = path.loc[7:] + return statichttprepository(ui, url).peer(path=path)