Mercurial > public > mercurial-scm > hg-stable
diff mercurial/httppeer.py @ 50998:12c308c55e53
branching: merge stable into default
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 11 Oct 2023 02:02:46 +0200 |
parents | 18c8c18993f0 758e40b9a8af |
children | d17578f96e60 |
line wrap: on
line diff
--- a/mercurial/httppeer.py Wed Jan 25 15:34:27 2023 +0100 +++ b/mercurial/httppeer.py Wed Oct 11 02:02:46 2023 +0200 @@ -662,7 +662,8 @@ return inst except error.RepoError as httpexception: try: - r = statichttprepo.make_peer(ui, b"static-" + path.loc, create) + path = path.copy(new_raw_location=b"static-" + path.rawloc) + r = statichttprepo.make_peer(ui, path, create) ui.note(_(b'(falling back to static-http)\n')) return r except error.RepoError: