Skip to content

Commit

Permalink
make change:changepw the default value for --auth
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Apr 12, 2012
1 parent 6fe971f commit d705acf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions master/buildbot/scripts/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def __init__(self):
("master", "m", None,
"Location of the buildmaster's PBListener (host:port)"),
# deprecated in 0.8.3; remove in 0.8.5 (bug #1711)
("auth", "a", None, "Authentication token - username:password, or prompt for password"),
("auth", "a", 'change:changepw',
"Authentication token - username:password, or prompt for password"),
("who", "W", None, "Author of the commit"),
("repository", "R", '', "Repository specifier"),
("vc", "s", None, "The VC system in use, one of: cvs, svn, darcs, hg, "
Expand Down Expand Up @@ -304,8 +305,6 @@ def postOptions(self):

# fix up the auth with a password if none was given
auth = self.get('auth')
if not auth:
auth = 'change:changepw'
if ':' not in auth:
import getpass
pw = getpass.getpass("Enter password for '%s': " % auth)
Expand Down

0 comments on commit d705acf

Please sign in to comment.