I'm trying to use the RB 1.0.4 API to post review requests for
Subversion post-committed changes.  I have a process (C++) that runs
periodically (once a week) to gather changes that have occurred during
the week.  But I can't get the diff upload to work!  I'm using cURL to
communicate with RB.  My svnMonitor runs outside of any working
directory.

It seems clear that I do not understand the diff upload step.  I have
created a local diff file from SVN, but where do I specify that file
in the API command?

Below are the steps I perform (hpost is a front-end for cURL).

hpost http://192.168.1.47/api/json/accounts/login/ {"username":
"svnmonitor", "password": "********"}
{"stat": "ok"}

hpost http://192.168.1.47/api/json/reviewrequests/new/
repository_path=svn://svnserver/TDL/Projects&submit_as=jellert
{"stat": "ok",  ....  "id": 196,  ...}

hpost http://192.168.1.47/api/json/reviewrequests/196/draft/set/
target_people=edelarosa
{"stat": "ok", ...

hpost http://192.168.1.47/api/json/reviewrequests/196/draft/save/ {}
{"stat": "ok"}

hpost http://192.168.1.47/api/json/reviewrequests/206/diff/new/
basedir=svn://svnserver/TDL/Projects&path=svn://svnserver/TDL/Projects/
trunk/TDL/Application/TwnServer/migrate_Twn_TwnDb2/GNUmakefile
{"fields": {"path": ["This field is required."]}, "stat": "fail",
"err": {"msg": "One or more fields had errors", "code": 105}}

Is what I want to do even possible?
Any help would be very much appreciated.
Jim

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to