# HG changeset patch # User Bjoern Ricks # Date 1280419554 0 # Node ID 8be09518315136535078994c97f67b22a055d8f3 # Parent c6d88d70bc434b6077f798618de5ac1db3bb27db fixed another typo treepkg is really slow with many revisions diff -r c6d88d70bc43 -r 8be095183151 treepkg/info/status.py --- 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