comparison treepkg/info/status.py @ 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 3a3cad8f6f60
comparison
equal deleted inserted replaced
434:c6d88d70bc43 435:8be095183151
90 def add_revisions(self, track, trackinfo): 90 def add_revisions(self, track, trackinfo):
91 revisions = track.get_revisions() 91 revisions = track.get_revisions()
92 revisions = sorted(revisions, key=lambda r: r.status.start, 92 revisions = sorted(revisions, key=lambda r: r.status.start,
93 reverse=True) 93 reverse=True)
94 candidates = revisions 94 candidates = revisions
95
95 if self.success: # skip not successful builds 96 if self.success: # skip not successful builds
96 candidates = [rev for rev in revisions 97 candidates = [rev for rev in revisions
97 if rev.status.status.finished 98 if rev.status.status.finished
98 and not rev.status.status.error] 99 and not rev.status.status.error]
99 100
100 if self.numnewestrev > 0: 101 if self.numnewestrev > 0:
101 canditates = candidates[:self.numnewestrev] 102 candidates = candidates[:self.numnewestrev]
102 103
103 arch = None 104 arch = None
104 105
105 for rev in candidates: 106 for rev in candidates:
106 revision = rev.revision 107 revision = rev.revision
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)