The branch, master has been updated via 338f129 Remove trailing whitespace. via 9ab3ded Merge remote-tracking branch 'krishna/recentcheckinimprovements' via 7840268 changes to reviews 2 via 8257486 changes to reviews via b43a773 recent checkins page speed improvements with hidng feature from 4a37365 Add --debug-storm option.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 338f129aae35054dd350677b19170279549c22db Author: Jelmer Vernooij <jel...@samba.org> Date: Fri Jul 11 02:19:38 2014 +0200 Remove trailing whitespace. commit 9ab3ded91c65b715211293967846bd2d454a7921 Merge: 4a37365dc220a84e952c8214cf3b9acfcafe746a 78402689a044b11a94114d2d136b9dbba870238e Author: Jelmer Vernooij <jel...@samba.org> Date: Fri Jul 11 02:17:43 2014 +0200 Merge remote-tracking branch 'krishna/recentcheckinimprovements' commit 78402689a044b11a94114d2d136b9dbba870238e Author: krishnatejaperannagari <krishnatejaperannag...@gmail.com> Date: Mon Jul 7 20:50:27 2014 +0530 changes to reviews 2 Signed-off-by: krishnatejaperannagari <krishnatejaperannag...@gmail.com> commit 825748611865259a3d5336c5ff7f61015de5b29a Author: krishnatejaperannagari <krishnatejaperannag...@gmail.com> Date: Fri Jul 4 13:56:18 2014 +0530 changes to reviews Signed-off-by: krishnatejaperannagari <krishnatejaperannag...@gmail.com> commit b43a77316d4500fe30b30d581f1915476e6058ac Author: krishnatejaperannagari <krishnatejaperannag...@gmail.com> Date: Tue Jun 17 11:37:54 2014 +0530 recent checkins page speed improvements with hidng feature Signed-off-by: krishnatejaperannagari <krishnatejaperannag...@gmail.com> ----------------------------------------------------------------------- Summary of changes: buildfarm/web/__init__.py | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py index 438d412..b1f0fb4 100755 --- a/buildfarm/web/__init__.py +++ b/buildfarm/web/__init__.py @@ -886,14 +886,15 @@ class DiffPage(HistoryPage): class RecentCheckinsPage(HistoryPage): - limit = 40 + limit = 10 - def render(self, myself, tree, author=None): + def render(self, myself, tree, gitstart, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = {"ALL": "ALL"} branch = t.get_branch() re_author = re.compile("^(.*) <(.*)>$") + for entry in branch.log(limit=HISTORY_HORIZON): m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) @@ -910,11 +911,28 @@ class RecentCheckinsPage(HistoryPage): yield "<input type='hidden' name='function', value='Recent Checkins'/>" yield "</form>" - for entry in interesting[:self.limit]: + gitstop = gitstart + self.limit + + for entry in interesting[gitstart:gitstop]: changes = branch.changes_summary(entry.revision) yield "".join(self.history_row_html(myself, entry, t, changes)) yield "\n" + yield "<form method='GET'>" + yield "<div class='newform'>\n" + if gitstart != 0: + yield "<button name='gitstart' type='submit' value=" + str(gitstart - self.limit) + " style='position:absolute;left:0px;'>Previous</button>" + if len(interesting) > gitstop: + yield "<button name='gitstart' type='submit' value=" + str(gitstop) + " style='position:absolute;right:0px;'>Next</button>" + yield "<input type='hidden' name='function', value='Recent Checkins'/>" + yield "<input type='hidden' name='gitcount' value='%s'/>" % gitstop + if author and author != "ALL": + yield "<input type='hidden' name='author' value='%s'/>" % author + yield "<input type='hidden' name='tree' value='%s'/>" % tree + yield "</div>\n" + yield "</form>" + yield "<br>" + class BuildFarmApp(object): @@ -1020,8 +1038,13 @@ class BuildFarmApp(object): elif fn_name == "Recent_Checkins": # validate the tree author = get_param(form, 'author') + gitstart = get_param(form, 'gitstart') + if gitstart is None: + gitstart = 0 + else: + gitstart = int(gitstart) page = RecentCheckinsPage(self.buildfarm) - yield "".join(self.html_page(form, page.render(myself, tree, author))) + yield "".join(self.html_page(form, page.render(myself, tree, gitstart, author))) elif fn_name == "diff": revision = get_param(form, 'revision') page = DiffPage(self.buildfarm) -- build.samba.org