--- a/viewer.py Tue May 05 23:52:12 2015 +0800
+++ b/viewer.py Tue May 05 23:53:29 2015 +0800
- changesets = self.getchangesets()
- results = self.getresults(changesets)
- return changesets, results
self.set_header('Content-Type', 'text/plain; charset=UTF-8')
- changesets, results = self.getdata()
- self.write('rev\tnode\t')
- self.write('\t'.join(MARKS.keys()))
+ changesets = self.getchangesets()
+ results = self.getresults(changesets)
+ self.write('rev\tnode')
+ self.write('\t{0} (without cache)\t{0} (with cache)'.format(mark))
- self.write('%(rev)s\t%(node)s\t' % cset)
- str(results.get(cset['node'], {}).get(mark, ('',))[0])
+ self.write('{rev}\t{node}'.format(**cset))
+ marks = results.get(cset['node'], {}).get(mark, ('', '', ''))
+ self.write('\t{0}\t{2}'.format(*marks))
- changesets, results = self.getdata()
+ changesets = self.getchangesets()
+ results = self.getresults(changesets)
self.render('results.html', changesets=changesets, marks=MARKS, results=results)