[SCM] build.samba.org - branch master updated

Jelmer Vernooij jelmer at samba.org
Wed Dec 8 10:19:21 MST 2010


The branch, master has been updated
       via  5da1eb6 Sane error message on unknown revision.
      from  03a9d85 Cope with unknown trees.

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 5da1eb6032da252cf2dd14aa36a8653f648c7bdd
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Wed Dec 8 18:19:07 2010 +0100

    Sane error message on unknown revision.

-----------------------------------------------------------------------

Summary of changes:
 buildfarm/web/__init__.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py
index 49aa6e5..e401a31 100755
--- a/buildfarm/web/__init__.py
+++ b/buildfarm/web/__init__.py
@@ -820,7 +820,11 @@ class HistoryPage(BuildFarmPage):
 class DiffPage(HistoryPage):
 
     def render(self, myself, tree, revision):
-        t = self.buildfarm.trees[tree]
+        try:
+            t = self.buildfarm.trees[tree]
+        except KeyError:
+            yield "Unknown tree %s" % tree
+            return
         branch = t.get_branch()
         (entry, diff) = branch.diff(revision)
         # get information about the current diff


-- 
build.samba.org


More information about the samba-cvs mailing list