Mercurial > hg
comparison mercurial/fileset.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 | 1310489eb5d6 |
children | 6252b4f1c4b4 |
comparison
equal
deleted
inserted
replaced
17980:83aa4359c49f | 17982:e06e9fd2d99f |
---|