equal
deleted
inserted
replaced
70 context = dict((str(i + 1), v) for i, v in enumerate(parts)) |
70 context = dict((str(i + 1), v) for i, v in enumerate(parts)) |
71 url = ''.join(self.templater.process(self.url, context)) + tail |
71 url = ''.join(self.templater.process(self.url, context)) + tail |
72 return hg._peerlookup(url).instance(ui, url, create) |
72 return hg._peerlookup(url).instance(ui, url, create) |
73 |
73 |
74 def hasdriveletter(orig, path): |
74 def hasdriveletter(orig, path): |
75 for scheme in schemes: |
75 if path: |
76 if path.startswith(scheme + ':'): |
76 for scheme in schemes: |
77 return False |
77 if path.startswith(scheme + ':'): |
|
78 return False |
78 return orig(path) |
79 return orig(path) |
79 |
80 |
80 schemes = { |
81 schemes = { |
81 'py': 'http://hg.python.org/', |
82 'py': 'http://hg.python.org/', |
82 'bb': 'https://bitbucket.org/', |
83 'bb': 'https://bitbucket.org/', |