[Buildbot-commits] [Buildbot] #1712: hgbuildbot needs to learn sendchange authentication
Buildbot
nobody at buildbot.net
Fri Dec 31 22:54:18 UTC 2010
#1712: hgbuildbot needs to learn sendchange authentication
-------------------+--------------------
Reporter: dustin | Owner:
Type: defect | Status: new
Priority: major | Milestone: 0.8.4
Version: 0.8.2 | Resolution:
Keywords: hg |
-------------------+--------------------
Comment (by mjw):
Testing the following patch:
--- buildbot/changes/hgbuildbot.py.orig 2010-12-31 21:39:46.004896813
+0000
+++ buildbot/changes/hgbuildbot.py 2010-12-31 22:11:00.313532237
+0000
@@ -74,6 +74,7 @@
stripcount = int(ui.config('notify','strip') or
ui.config('hgbuildbot','strip',3))
category = ui.config('hgbuildbot', 'category', None)
project = ui.config('hgbuildbot', 'project', '')
+ auth = ui.config('hgbuildbot', 'auth', None)
else:
ui.write("* You must add a [hgbuildbot] section to .hg/hgrc in "
"order to use buildbot hook\n")
@@ -104,7 +105,11 @@
if branchtype == 'inrepo':
branch = workingctx(repo).branch()
- s = sendchange.Sender(master)
+ if not auth:
+ auth = 'change:changepw'
+ auth = auth.split(':', 1)
+
+ s = sendchange.Sender(master, auth=auth)
d = defer.Deferred()
reactor.callLater(0, d.callback, None)
# process changesets
--
Ticket URL: <http://trac.buildbot.net/ticket/1712#comment:4>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list