[Buildbot-commits] buildbot/buildbot/scripts runner.py,1.35,1.36

Brian Warner warner at users.sourceforge.net
Wed Aug 31 02:26:23 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22093/buildbot/scripts

Modified Files:
	runner.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-304
Creator:  Brian Warner <warner at lothar.com>

add --revision_file to the 'buildbot sendchange' args, for Darcs

	* buildbot/scripts/runner.py (sendchange): add --revision_file to
	the 'buildbot sendchange' arguments, for the Darcs context file
	* docs/buildbot.texinfo (sendchange): document it


Index: runner.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/scripts/runner.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- runner.py	31 Aug 2005 01:12:06 -0000	1.35
+++ runner.py	31 Aug 2005 02:26:21 -0000	1.36
@@ -508,14 +508,15 @@
 
 class SendChangeOptions(usage.Options):
     optParameters = [
-        ["master", "m", None,
-         "Location of the buildmaster's PBListener (host:port)"],
-        ["username", "u", None, "Username performing the commit"],
-        ["revision", "r", None, "Revision specifier (string)"],
-        ["revision_number", "n", None, "Revision specifier (integer)"],
-        ["comments", "m", None, "log message"],
-        ["logfile", "F", None,
-         "Read the log messages from this file (- for stdin)"],
+        ("master", "m", None,
+         "Location of the buildmaster's PBListener (host:port)"),
+        ("username", "u", None, "Username performing the commit"),
+        ("revision", "r", None, "Revision specifier (string)"),
+        ("revision_number", "n", None, "Revision specifier (integer)"),
+        ("revision_file", None, None, "Filename containing revision spec"),
+        ("comments", "m", None, "log message"),
+        ("logfile", "F", None,
+         "Read the log messages from this file (- for stdin)"),
         ]
     def getSynopsis(self):
         return "Usage:    buildbot sendchange [options] filenames.."
@@ -535,6 +536,8 @@
     # SVN and P4 use numeric revisions
     if config.get("revision_number"):
         revision = int(config['revision_number'])
+    if config.get("revision_file"):
+        revision = open(config["revision_file"],"r").read()
 
     comments = config.get('comments')
     if not comments and config.get('logfile'):





More information about the Commits mailing list