Show More
@@ -192,16 +192,6 b' def openpath(ui, path, sendaccept=True):' | |||
|
192 | 192 | wirepeersetupfuncs = [] |
|
193 | 193 | |
|
194 | 194 | |
|
195 | def _peerorrepo( | |
|
196 | ui, path, create=False, presetupfuncs=None, intents=None, createopts=None | |
|
197 | ): | |
|
198 | """return a repository object for the specified path""" | |
|
199 | cls = _peerlookup(path) | |
|
200 | obj = cls.instance(ui, path, create, intents=intents, createopts=createopts) | |
|
201 | _setup_repo_or_peer(ui, obj, presetupfuncs) | |
|
202 | return obj | |
|
203 | ||
|
204 | ||
|
205 | 195 | def _setup_repo_or_peer(ui, obj, presetupfuncs=None): |
|
206 | 196 | ui = getattr(obj, "ui", ui) |
|
207 | 197 | for f in presetupfuncs or []: |
General Comments 0
You need to be logged in to leave comments.
Login now