hgext/schemes.py
changeset 10282 08a0f04b56bd
parent 10263 25e572394f5c
child 10777 bdc3256a318e
equal deleted inserted replaced
10281:e7d3b509af8b 10282:08a0f04b56bd
    62         if len(parts) > self.parts:
    62         if len(parts) > self.parts:
    63             tail = parts[-1]
    63             tail = parts[-1]
    64             parts = parts[:-1]
    64             parts = parts[:-1]
    65         else:
    65         else:
    66             tail = ''
    66             tail = ''
    67         context = dict((str(i+1), v) for i, v in enumerate(parts))
    67         context = dict((str(i + 1), v) for i, v in enumerate(parts))
    68         url = ''.join(self.templater.process(self.url, context)) + tail
    68         url = ''.join(self.templater.process(self.url, context)) + tail
    69         return hg._lookup(url).instance(ui, url, create)
    69         return hg._lookup(url).instance(ui, url, create)
    70 
    70 
    71 schemes = {
    71 schemes = {
    72     'py': 'http://hg.python.org/',
    72     'py': 'http://hg.python.org/',