osunix / RietveldBroker
Rietveld code review broker. This ties bitbucket into Google's code review system. Just get an app engine setup, deploy Rietveld configure the service and you're all setup. No support provided, but patches welcome.
| commit 8: | 123cf0855937 |
| parent 7: | bbd882ca187b |
| branch: | default |
| tags: | tip |
Send commit name during patch upload
Changed (Δ11 bytes):
raw changeset »
codereview-broker.py (4 lines added, 4 lines removed)
Up to file-list codereview-broker.py:
1 |
#!/usr/bin/env python |
|
2 |
||
1 |
3 |
# Copyright 2009 PathScale Inc. Andrew Stormont <andyjstormont@googlemail.com> |
2 |
4 |
# |
3 |
5 |
# Redistribution and use in source and binary forms, with or without |
| … | … | @@ -101,7 +103,7 @@ class RietveldBroker(BaseBroker): |
101 |
103 |
"base" : "http://bitbucket.org%sraw/%s/" % (repo["absolute_url"], (int(commit["revision"]) - 1)), |
102 |
104 |
"url" : "http://bitbucket.org%schangeset/%s/raw/%s-%s.diff" % (repo["absolute_url"], commit["node"], repo["name"], commit["node"]), |
103 |
105 |
"project" : repo["name"], |
104 |
" |
|
106 |
"commit_name": commit["author"], |
|
105 |
107 |
"xsrf_token" : form_token |
106 |
108 |
} |
107 |
109 |
post_response = opener.open(url + "/new", urlencode(post_data)) |
| … | … | @@ -109,9 +111,7 @@ class RietveldBroker(BaseBroker): |
109 |
111 |
if MAINTAINER_MODE: |
110 |
112 |
import sys |
111 |
113 |
try: |
112 |
url = sys.argv[1] |
|
113 |
email = sys.argv[2] |
|
114 |
|
|
114 |
(url, email, password) = (sys.argv[1], sys.argv[2], sys.argv[3]) |
|
115 |
115 |
except: |
116 |
116 |
print "E: %s <url> <username> <password>" % sys.argv[0] |
117 |
117 |
quit(1) |
