Make sendchange's --revlink (and others) default to '', not None
authorDustin J. Mitchell <dustin@mozilla.com>
Wed, 10 Nov 2010 16:13:03 -0600
changeset 104 4376b1933ad919afae7bfe1f615f5bfee3d81351
parent 103 e5b0d9774f2ac2bc8a55f74dd425a33a5365bbf9
child 105 91643784deee6fb605ec63dcad2e6d3970159730
push id41
push userdmitchell@mozilla.com
push dateWed, 17 Nov 2010 14:22:22 +0000
Make sendchange's --revlink (and others) default to '', not None Change merged from http://buildbot.net/trac/ticket/1050 r=ssalbiz
master/buildbot/scripts/runner.py
--- a/master/buildbot/scripts/runner.py
+++ b/master/buildbot/scripts/runner.py
@@ -767,29 +767,29 @@ class SendChangeOptions(OptionsWithOptio
     def __init__(self):
         OptionsWithOptionsFile.__init__(self)
         self['properties'] = {}
 
     optParameters = [
         ("master", "m", None,
          "Location of the buildmaster's PBListener (host:port)"),
         ("username", "u", None, "Username performing the commit"),
-        ("repository", "R", None, "Repository specifier"),
-        ("project", "P", None, "Project specifier"),
+        ("repository", "R", '', "Repository specifier"),
+        ("project", "P", '', "Project specifier"),
         ("branch", "b", None, "Branch specifier"),
         ("category", "C", None, "Category of repository"),
         ("revision", "r", None, "Revision specifier"),
         ("revision_file", None, None, "Filename containing revision spec"),
         ("property", "p", None,
          "A property for the change, in the format: name:value"),
         ("comments", "c", None, "log message"),
         ("logfile", "F", None,
          "Read the log messages from this file (- for stdin)"),
         ("when", "w", None, "timestamp to use as the change time"),
-        ("revlink", "l", None, "Revision link (revlink)"),
+        ("revlink", "l", '', "Revision link (revlink)"),
         ]
 
     buildbotOptions = [
         [ 'master', 'master' ],
         [ 'username', 'username' ],
         [ 'branch', 'branch' ],
         [ 'category', 'category' ],
     ]