How about
from rbtools.api.client import RBClient
server_url = https://server root
# choose the review request Id
# RRId=some review request number
# choose the field to update
RRDField=changedescription
# the value to set
RRDValue=This is a change description
# connect to the server
For the update call, instead of using eval, just do:
fields = {
RRDField: RRDValue,
}
draft.update(fields)
or:
draft.update(**{
RRDField: RRDValue,
})
--
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. -
Yep, much better not to use eval(). thanks.
On Thursday, January 23, 2014 1:40:26 PM UTC-8, Christian Hammond wrote:
For the update call, instead of using eval, just do:
fields = {
RRDField: RRDValue,
}
draft.update(fields)
or:
draft.update(**{
Thanks,any hint to us to write a customize script to support this?
On Tuesday, October 1, 2013 5:53:14 AM UTC+8, Christian Hammond wrote:
--change-only really is intended only for Perforce, and will not work for
this case.
Today, you cannot set only a field without uploading a diff using
I haven't tried this, but does it work if you include the --change-only
option?
--steve
On Saturday, September 28, 2013 8:04:36 PM UTC-7, Lynn Lin wrote:
Environment:
Git source code repostior
y Linux ubuntu
RBTools:0.5.2
Reviewboard:1.6.1
I try to *ONLY* update testing-done
--change-only really is intended only for Perforce, and will not work for
this case.
Today, you cannot set only a field without uploading a diff using
post-review or rbt post. That would need to be added.
It would be pretty easy, though, to write a custom script using the RBTools
Python API to
Environment:
Git source code repostior
y Linux ubuntu
RBTools:0.5.2
Reviewboard:1.6.1
I try to *ONLY* update testing-done field for a existing review request on
reviewboard through post-review
here is my command:
post-review --testing-done=cppcheck results,unit test results link abc