Mercurial > hg
comparison mercurial/repair.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 | 7f5dab94e48c |
children | 747a2f43d5d9 |
comparison
equal
deleted
inserted
replaced
17980:83aa4359c49f | 17982:e06e9fd2d99f |
---|