equal
deleted
inserted
replaced
91 for scheme, url in schemes.items(): |
91 for scheme, url in schemes.items(): |
92 if (os.name == 'nt' and len(scheme) == 1 and scheme.isalpha() |
92 if (os.name == 'nt' and len(scheme) == 1 and scheme.isalpha() |
93 and os.path.exists('%s:\\' % scheme)): |
93 and os.path.exists('%s:\\' % scheme)): |
94 raise util.Abort(_('custom scheme %s:// conflicts with drive ' |
94 raise util.Abort(_('custom scheme %s:// conflicts with drive ' |
95 'letter %s:\\\n') % (scheme, scheme.upper())) |
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 extensions.wrapfunction(util, 'hasdriveletter', hasdriveletter) |
98 extensions.wrapfunction(util, 'hasdriveletter', hasdriveletter) |