hgext/schemes.py
branchstable
changeset 10070 9d1195b2f00d
parent 9967 0c3eeee91c9a
child 10263 25e572394f5c
--- a/hgext/schemes.py	Mon Dec 07 12:44:15 2009 -0500
+++ b/hgext/schemes.py	Mon Dec 14 21:21:34 2009 +0200
@@ -64,7 +64,7 @@
             parts = parts[:-1]
         else:
             tail = ''
-        context = dict((str(i), v) for i, v in enumerate(parts))
+        context = dict((str(i+1), v) for i, v in enumerate(parts))
         url = ''.join(self.templater.process(self.url, context)) + tail
         return hg._lookup(url).instance(ui, url, create)