##// END OF EJS Templates
static-http: have `statichttprepo.instance` return a peer object...
marmoute -
r50586:c3728734 default
parent child Browse files
Show More
@@ -147,13 +147,13 b' repo_schemes = {'
147 b'bundle': bundlerepo,
147 b'bundle': bundlerepo,
148 b'union': unionrepo,
148 b'union': unionrepo,
149 b'file': LocalFactory,
149 b'file': LocalFactory,
150 b'static-http': statichttprepo,
151 }
150 }
152
151
153 peer_schemes = {
152 peer_schemes = {
154 b'http': httppeer,
153 b'http': httppeer,
155 b'https': httppeer,
154 b'https': httppeer,
156 b'ssh': sshpeer,
155 b'ssh': sshpeer,
156 b'static-http': statichttprepo,
157 }
157 }
158
158
159
159
@@ -262,4 +262,4 b' class statichttprepository('
262 def instance(ui, path, create, intents=None, createopts=None):
262 def instance(ui, path, create, intents=None, createopts=None):
263 if create:
263 if create:
264 raise error.Abort(_(b'cannot create new static-http repository'))
264 raise error.Abort(_(b'cannot create new static-http repository'))
265 return statichttprepository(ui, path[7:])
265 return statichttprepository(ui, path[7:]).peer()
General Comments 0
You need to be logged in to leave comments. Login now