diff mercurial/statichttprepo.py @ 49750:f075a9463ee7

peer: use a dedicated name for the `peer` constructor We want to change the argument it takes, so we rather make them different function.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Dec 2022 18:04:51 +0100
parents c37287340c00
children ff7134e03629
line wrap: on
line diff
--- a/mercurial/statichttprepo.py	Fri Dec 02 18:04:37 2022 +0100
+++ b/mercurial/statichttprepo.py	Fri Dec 02 18:04:51 2022 +0100
@@ -259,7 +259,7 @@
         pass  # statichttprepository are read only
 
 
-def instance(ui, path, create, intents=None, createopts=None):
+def make_peer(ui, path, create, intents=None, createopts=None):
     if create:
         raise error.Abort(_(b'cannot create new static-http repository'))
     return statichttprepository(ui, path[7:]).peer()