##// END OF EJS Templates
hg: move peerschemes back to schemes...
Matt Mackall -
r14606:6e631c24 default
parent child Browse files
Show More
@@ -93,6 +93,6 b' def extsetup(ui):'
93 93 and os.path.exists('%s:\\' % scheme)):
94 94 raise util.Abort(_('custom scheme %s:// conflicts with drive '
95 95 'letter %s:\\\n') % (scheme, scheme.upper()))
96 hg.peerschemes[scheme] = ShortRepository(url, scheme, t)
96 hg.schemes[scheme] = ShortRepository(url, scheme, t)
97 97
98 98 extensions.wrapfunction(util, 'hasdriveletter', hasdriveletter)
@@ -61,7 +61,7 b' def parseurl(path, branches=None):'
61 61 u.fragment = None
62 62 return str(u), (branch, branches or [])
63 63
64 peerschemes = {
64 schemes = {
65 65 'bundle': bundlerepo,
66 66 'file': _local,
67 67 'http': httprepo,
@@ -73,7 +73,7 b' peerschemes = {'
73 73 def _peerlookup(path):
74 74 u = util.url(path)
75 75 scheme = u.scheme or 'file'
76 thing = peerschemes.get(scheme) or peerschemes['file']
76 thing = schemes.get(scheme) or schemes['file']
77 77 try:
78 78 return thing(path)
79 79 except TypeError:
General Comments 0
You need to be logged in to leave comments. Login now