hgext/schemes.py
changeset 14606 6e631c24c6d9
parent 14605 9f1139cf5c76
child 15609 8f4bad72d8b1
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)