diff mercurial/config.py @ 17982:e06e9fd2d99f

template engine: convert generator-based iterator to list-based iterator If a template iterator is implemented with generator, the iterator is exhau= sted after we use it. This leads to undesired behavior in template. This chang= e converts a generator-based iterator to list-based iterator when template en= gine first detects a generator-based iterator. All future usages of iterator wi= ll use list instead.
author Weiwen <weiwen@fb.com>
date Wed, 28 Nov 2012 14:55:42 -0800
parents 31f32a96e1e3
children 7d82ad4b3727
line wrap: on
line diff