[PATCH RFC] templater: switch ctx of list expression to rev of revset() (BC)

Matt Mackall mpm at selenic.com
Sat Sep 12 23:15:11 CDT 2015


On Sun, 2015-09-13 at 00:07 +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1441984901 -32400
> #      Sat Sep 12 00:21:41 2015 +0900
> # Node ID c84a1730514ee190526966250110fe4cf740d8d1
> # Parent  efebefe162e98aa79438daaea9aaee47c7de33bb
> templater: switch ctx of list expression to rev of revset() (BC)
> 
> Because revset() function generates a list of revisions, it seems sensible
> to switch the ctx as well where a list expression will be evaluated. I think
> "{revset(...) % "..."}" expression wasn't considered well when it was
> introduced at cda9d2b6beab.

Looks good to me, queued for default.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list