Download:
child 49:98a080b1eb9a
parent 47:cd38f08d1b6a
48:ab4996533232
Anton Shestakov <av6@dwimlabs.net>, Sat, 06 Feb 2016 20:47:42 +0800
viewer: support selecting marks in results.tsv

1 файлов изменено, 6 вставок(+), 5 удалений(-) [+]
viewer.py file | annotate | diff | comparison | revisions
--- a/viewer.py Sat Feb 06 20:46:27 2016 +0800
+++ b/viewer.py Sat Feb 06 20:47:42 2016 +0800
@@ -127,16 +127,17 @@
def results_tsv(self):
self.set_header('Content-Type', 'text/plain; charset=UTF-8')
changesets = self.getchangesets()
- results, _ = self.getresults(changesets, MARKS, colors=False)
+ marks, _ = self.getmarks()
+ results, _ = self.getresults(changesets, marks=marks, colors=False)
self.write('rev\tnode')
- for mark in MARKS:
+ for mark in marks:
self.write('\t{0} (without cache)\t{0} (with cache)'.format(mark))
self.write('\n')
for cset in changesets:
self.write('{rev}\t{node}'.format(**cset))
- for mark in MARKS:
- marks = results.get(cset['node'], {}).get(mark, ('', '', ''))
- self.write('\t{0}\t{2}'.format(*marks))
+ for mark in marks:
+ values = results.get(cset['node'], {}).get(mark, ('', '', ''))
+ self.write('\t{0}\t{2}'.format(*values))
self.write('\n')
self.finish()