Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/patchbomb.py @ 3468:0e68608bd11d
use xrange instead of range
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 19 Oct 2006 14:16:51 +0200 |
parents | 0b5d626b354e |
children | ff49da8bd6ae abaee83ce0a6 2601ac9c54f0 |
comparison
equal
deleted
inserted
replaced
3467:df7202f6887c | 3468:0e68608bd11d |
---|---|
193 jumbo = [] | 193 jumbo = [] |
194 msgs = [] | 194 msgs = [] |
195 | 195 |
196 ui.write(_('This patch series consists of %d patches.\n\n') % len(patches)) | 196 ui.write(_('This patch series consists of %d patches.\n\n') % len(patches)) |
197 | 197 |
198 for p, i in zip(patches, range(len(patches))): | 198 for p, i in zip(patches, xrange(len(patches))): |
199 jumbo.extend(p) | 199 jumbo.extend(p) |
200 msgs.append(makepatch(p, i + 1, len(patches))) | 200 msgs.append(makepatch(p, i + 1, len(patches))) |
201 | 201 |
202 sender = (opts['from'] or ui.config('email', 'from') or | 202 sender = (opts['from'] or ui.config('email', 'from') or |
203 ui.config('patchbomb', 'from') or | 203 ui.config('patchbomb', 'from') or |