Skip to content

Commit

Permalink
remove deprecated --username option to 'buildbot sendchange'
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Nov 12, 2011
1 parent 75e30c2 commit 93712b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
6 changes: 0 additions & 6 deletions master/buildbot/scripts/runner.py
Expand Up @@ -768,7 +768,6 @@ 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)
("username", "u", None, "deprecated name for --who"),
("auth", "a", None, "Authentication token - username:password, or prompt for password"),
("who", "W", None, "Author of the commit"),
("repository", "R", '', "Repository specifier"),
Expand All @@ -793,8 +792,6 @@ def __init__(self):
buildbotOptions = [
[ 'master', 'master' ],
[ 'who', 'who' ],
# deprecated in 0.8.3; remove in 0.8.5 (bug #1711)
[ 'username', 'username' ],
[ 'branch', 'branch' ],
[ 'category', 'category' ],
[ 'vc', 'vc' ],
Expand All @@ -816,9 +813,6 @@ def sendchange(config, runReactor=False):

encoding = config.get('encoding', 'utf8')
who = config.get('who')
if not who and config.get('username'):
print "NOTE: --username/-u is deprecated: use --who/-W'"
who = config.get('username')
auth = config.get('auth')
master = config.get('master')
branch = config.get('branch')
Expand Down
10 changes: 0 additions & 10 deletions master/buildbot/test/unit/test_scripts_runner.py
Expand Up @@ -182,16 +182,6 @@ def check(_):
d.addCallback(check)
return d

def test_sendchange_deprecated_username(self):
d = runner.sendchange(dict(username='me', master='a:1'))
def check(_):
self.assertEqual((self.sender.master, self.sender.auth,
self.sender.encoding, self.sender.send_kwargs['who']),
('a:1', ['change','changepw'], 'utf8', 'me'))
self.assertIn('is deprecated', self.stdout.getvalue())
d.addCallback(check)
return d

def test_sendchange_revision_file(self):
open('rf', 'w').write('abcd')
d = runner.sendchange(dict(who='me', master='a:1', revision_file='rf'))
Expand Down
3 changes: 3 additions & 0 deletions master/docs/release-notes.rst
Expand Up @@ -17,6 +17,9 @@ Deprecations, Removals, and Non-Compatible Changes
* ``buildbot start`` no longer invokes make if a ``Makefile.buildbot`` exists.
If you are using this functionality, consider invoking make directly.

* The ``buildbot sendchange`` option ``--username`` has been removed as
promised in bug #1711.

Features
~~~~~~~~

Expand Down

0 comments on commit 93712b4

Please sign in to comment.