changeset 49762:c4d587fa161c

peer: pass the `path` to the statichttp peer We now have all peer able to receive and store a `path` object. Hooray.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Dec 2022 19:34:01 +0100
parents 73ed1d13c0bf
children e300f445ca77
files mercurial/statichttprepo.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)