[PATCH] hgweb: display difference for a changeset against any parents (issue2810)

Matt Mackall mpm at selenic.com
Mon Nov 26 17:14:57 CST 2012


On Mon, 2012-11-26 at 23:10 +0000, Weiwen Liu wrote:
> Yes, the iterator is exhausted after we use it once.  We used parent
> iterator earlier on "<td class="author">{parent%changesetparent}</td>".
> 
> Let me see if I can find a way to reset the iterator.

Probably the most straightforward thing to do is to teach the template
engine to turn iterators into lists when they're used. The right place
to do that is probably here:

http://www.selenic.com/hg/file/d0d99c8bdf51/mercurial/templater.py#l137

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list