changeset 34537 | 8c3dd5e462cc |
parent 34535 | 78590585c0db |
child 34538 | ac38e889b33a |
--- a/mercurial/templatekw.py Mon Sep 18 23:07:17 2017 +0900 +++ b/mercurial/templatekw.py Mon Sep 18 23:49:05 2017 +0900 @@ -663,9 +663,9 @@ 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]).