comparison mercurial/setdiscovery.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 9724f8f8850b
children 1e5b38a919dd
comparison
equal deleted inserted replaced
17980:83aa4359c49f 17982:e06e9fd2d99f