Hi,
I'm writing CLI for reviewoard

- new request
(nrq option create a new request, upload a patch and set summary and
description)

sdou...@fou-hi:~/hg/sact/internal/sact.hgwrap/fake$ ../wip/bin/hgw nrq
-r test1 -u admin -g admin
hgw: connected to Review Board server
[DEBUG] HTTP POSTing to http://localhost/rb/api/json/accounts/login/:
{'username': 'admin', 'password': '**************'}
[hgwrap] hgw: cannot find real repos name, add hgrc file
[hgwrap] new request for test1 with patch test1.patch
[DEBUG] HTTP GETting to http://localhost/rb/api/json/repositories/
[DEBUG] Attempting to create review request for
/home/sdouche/hg/sact/internal/sact.hgwrap/fake
[DEBUG] HTTP POSTing to
http://localhost/rb/api/json/reviewrequests/new/: {'repository_path':
'/home/sdouche/hg/sact/internal/sact.hgwrap/fake'}
[DEBUG] Review request created
[DEBUG] Attempting to set field 'summary' to 'FEATURE: prout ' for
review request '4'
[DEBUG] HTTP POSTing to
http://localhost/rb/api/json/reviewrequests/4/draft/set/: {'summary':
'FEATURE: prout\n'}
[DEBUG] Attempting to set field 'description' to 'FEATURE: prout ' for
review request '4'
[DEBUG] HTTP POSTing to
http://localhost/rb/api/json/reviewrequests/4/draft/set/:
{'description': 'FEATURE: prout\n'}
[DEBUG] Attempting to set field 'target_people' to 'admin' for review
request '4'
[DEBUG] HTTP POSTing to
http://localhost/rb/api/json/reviewrequests/4/draft/set/:
{'target_people': 'admin'}
[DEBUG] Attempting to set field 'target_groups' to 'admin' for review
request '4'
[DEBUG] HTTP POSTing to
http://localhost/rb/api/json/reviewrequests/4/draft/set/:
{'target_groups': 'admin'}
[DEBUG] Uploading diff, size: 159
[DEBUG] HTTP POSTing to
http://localhost/rb/api/json/reviewrequests/4/diff/new/: {}
[hgwrap] new request 4 created!

- next step, publish the request

sdou...@fou-hi:~/hg/sact/internal/sact.hgwrap/fake$ ../wip/bin/hgw p 2
hgw: connected to Review Board server
[DEBUG] HTTP POSTing to http://localhost/rb/api/json/accounts/login/:
{'username': 'admin', 'password': '**************'}
[hgwrap] hgw: cannot find real repos name, add hgrc file
[DEBUG] Publishing
[DEBUG] HTTP POSTing to
http://localhost/rb/api/json/reviewrequests/2/publish/: {}

But the GUI is broken:
- close & review buttons are unreachable
- JS in diff view doesn't work



-- 
Sebastien Douche <sdou...@gmail.com>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
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