[Buildbot-commits] buildbot/buildbot/status/web builder.py, 1.12, 1.13

Brian Warner warner at users.sourceforge.net
Wed Nov 21 09:21:18 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18873/buildbot/status/web

Modified Files:
	builder.py 
Log Message:
[project @ minor cleanup, from #138]

Original author: warner at lothar.com
Date: 2007-11-21 08:45:29+00:00

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/builder.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- builder.py	1 Nov 2007 08:44:46 -0000	1.12
+++ builder.py	21 Nov 2007 09:21:16 -0000	1.13
@@ -157,9 +157,9 @@
         if not re.match(r'^[\w\.\-\/]*$', revision):
             log.msg("bad revision '%s'" % revision)
             return Redirect("..")
-        if branch == "":
+        if not branch:
             branch = None
-        if revision == "":
+        if not revision:
             revision = None
 
         # TODO: if we can authenticate that a particular User pushed the





More information about the Commits mailing list