Comments
Patch
@@ -663,9 +663,9 @@ def showpeerpaths(repo, **args):
d = util.sortdict()
d['url'] = p.rawloc
d.update((o, v) for o, v in sorted(p.suboptions.iteritems()))
- def f():
+ def f(d):
yield d['url']
- paths[k] = hybriddict(d, gen=f())
+ paths[k] = hybriddict(d, gen=f(d))
# no hybriddict() since d['path'] can't be formatted as a string. perhaps
# hybriddict() should call templatefilters.stringify(d[value]).
@@ -94,10 +94,10 @@ log template:
dupe=$TESTTMP/b#tip (glob)
expand=$TESTTMP/a/$SOMETHING/bar (glob)
$ hg log -rnull -T '{peerpaths % "{name}: {path}\n"}'
- dupe: $TESTTMP/a/$SOMETHING/bar (glob)
+ dupe: $TESTTMP/b#tip (glob)
expand: $TESTTMP/a/$SOMETHING/bar (glob)
$ hg log -rnull -T '{get(peerpaths, "dupe")}\n'
- $TESTTMP/a/$SOMETHING/bar (glob)
+ $TESTTMP/b#tip (glob)
(but a path is actually a dict of url and sub-options)