On Sep 5, 3:36 pm, "David Trowbridge" <
trowb...@gmail.com> wrote:
> post-review actually supports this use case natively, since both
> Christian and I use git-svn for reviewboard development.
>
> If you add something like this to your .git/config, when you run
> post-review it'll take a diff of your current HEAD up to the remote
> branch and post it.
> [reviewboard]
> url =
http://reviews.review-board.org/
Wow. Definitely glad to see that this use case is supported. ;-)
For the benefit of others, one issue I resolved was that the
repository was configured as svn://
repo.example.com/. I had to
reconfigure it to svn://
repo.example.com (no trailing slash).
The actual error message was: "Error creating review request: The
repository path specified is not in the list of known repositories
(code 206)"
Now I am stuck on the following error (sanitized).
$ post-review -d
>>> Repository info 'Path: svn://
repo.example.com, Base path: /repo/trunk, Supports changesets: False'
>>> git diff --no-color --no-prefix -r -u master..
>>> git-svn find-rev master
>>> Looking for '
review.example.com /reviewboard/' cookie in /home/rusty/.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request for None
>>> Submitting the review request as rusty
>>> HTTP POSTing to
http://review.example.com/reviewboard/api/json/reviewrequests/new/: {'repository_path': 'svn://
repo.example.com', 'submit_as': 'rusty'}
>>> Review request created
>>> Attempting to set field 'target_groups' to 'rails' for review request '17'
>>> HTTP POSTing to
http://review.example.com/reviewboard/api/json/reviewrequests/17/draft/set/: {'target_groups': 'rails'}
>>> HTTP POSTing to
http://review.example.com/reviewboard/api/json/reviewrequests/17/draft/save/: {}
>>> Review request draft saved
Traceback (most recent call last):
File "/home/rusty/scripts/post-review", line 1589, in <module>
main(sys.argv[1:])
File "/home/rusty/scripts/post-review", line 1571, in main
submit_as=options.submit_as)
File "/home/rusty/scripts/post-review", line 1396, in tempt_fate
parent_diff_content)
File "/home/rusty/scripts/post-review", line 291, in upload_diff
debug("Uploading diff, size: %d" % len(diff_content))
TypeError: object of type 'NoneType' has no len()
Any thoughts on what I am missing here?
~Rusty