# HG changeset patch # User Yuya Nishihara # Date 1504361374 -32400 # Node ID 86d050abd5c14cd02c5019c00726a71c0f684555 # Parent e473f482b9b39038e754cc847c7ca5ccea92c2d5 templater: do not destructure operands in buildmap() This makes the next patch slightly simpler. diff -r e473f482b9b3 -r 86d050abd5c1 mercurial/templater.py --- a/mercurial/templater.py Sat Sep 09 19:01:18 2017 +0900 +++ b/mercurial/templater.py Sat Sep 02 23:09:34 2017 +0900 @@ -410,12 +410,12 @@ raise error.Abort(msg) def buildmap(exp, context): - func, data = compileexp(exp[1], context, methods) - tfunc, tdata = gettemplate(exp[2], context) - return (runmap, (func, data, tfunc, tdata)) + darg = compileexp(exp[1], context, methods) + targ = gettemplate(exp[2], context) + return (runmap, (darg, targ)) def runmap(context, mapping, data): - func, data, tfunc, tdata = data + (func, data), (tfunc, tdata) = data d = func(context, mapping, data) if util.safehasattr(d, 'itermaps'): diter = d.itermaps()