comparison hgext/schemes.py @ 14606:6e631c24c6d9

hg: move peerschemes back to schemes This will avoid breaking things with extensions until peers are fully separated from repos.
author Matt Mackall <mpm@selenic.com>
date Mon, 13 Jun 2011 16:25:18 -0500
parents 9f1139cf5c76
children 8f4bad72d8b1
comparison
equal deleted inserted replaced
14605:9f1139cf5c76 14606:6e631c24c6d9
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)