--- a/viewer.py Mon Sep 28 01:56:59 2015 +0800
+++ b/viewer.py Sat Feb 06 20:46:27 2016 +0800
repomt = os.stat(changelog).st_mtime
return 'W/"{},{}"'.format(dbmt, repomt)
+ chosen = self.get_argument('marks', '')
+ chosen = chosen.split(',')
+ marks = OrderedDict((mark, MARKS[mark]) for mark in chosen if mark in MARKS)
+ moremarks = OrderedDict((mark, desc) for mark, desc in MARKS.items() if mark not in chosen)
+ return marks, moremarks
rev = self.get_argument('rev', 'tip')
changesets = self.getchangesets()
- showmarks = self.get_argument('marks', '')
- showmarks = showmarks.split(',')
- marks = OrderedDict((mark, MARKS[mark]) for mark in showmarks if mark in MARKS)
- moremarks = OrderedDict((mark, desc) for mark, desc in MARKS.items() if mark not in showmarks)
+ marks, moremarks = self.getmarks()
local = self.get_argument('local', False)
results, colormap = self.getresults(changesets, marks=marks, local=local)