Mercurial > hg
comparison mercurial/encoding.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 | e7cfe3587ea4 |
children | 404feac78b8a |
comparison
equal
deleted
inserted
replaced
17980:83aa4359c49f | 17982:e06e9fd2d99f |
---|