Mercurial > treepkg
changeset 435:8be095183151 treepkg-status
fixed another typo
treepkg is really slow with many revisions
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Thu, 29 Jul 2010 16:05:54 +0000 |
parents | c6d88d70bc43 |
children | eab777e1bafd |
files | treepkg/info/status.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/info/status.py Thu Jul 29 14:59:10 2010 +0000 +++ b/treepkg/info/status.py Thu Jul 29 16:05:54 2010 +0000 @@ -92,13 +92,14 @@ revisions = sorted(revisions, key=lambda r: r.status.start, reverse=True) candidates = revisions + if self.success: # skip not successful builds candidates = [rev for rev in revisions if rev.status.status.finished and not rev.status.status.error] if self.numnewestrev > 0: - canditates = candidates[:self.numnewestrev] + candidates = candidates[:self.numnewestrev] arch = None