Comments
Patch
@@ -68,11 +68,12 @@
tail = parts[-1]
parts = parts[:-1]
else:
tail = ''
context = dict((str(i + 1), v) for i, v in enumerate(parts))
- url = ''.join(self.templater.process(self.url, context)) + tail
+ stream = self.templater.process(self.url, context)
+ url = ''.join(templater.stringify(stream)) + tail
return hg._peerlookup(url).instance(ui, url, create)
def hasdriveletter(orig, path):
if path:
for scheme in schemes:
@@ -418,11 +418,11 @@
self.filters, self.defaults)
proc = self.ecache[ttype]
stream = proc.process(t, mapping)
if self.minchunk:
- stream = util.increasingchunks(stream, min=self.minchunk,
+ stream = util.increasingchunks(stringify(stream), min=self.minchunk,
max=self.maxchunk)
return stream
def templatepath(name=None):
'''return location of template file or directory (if no name).