I see that I'm supposed to give it a repository type as an argument. Where 
do I get that from?


luni, 28 septembrie 2015, 22:27:21 UTC+3, Christian Hammond a scris:
>
> Hi,
>
> If you look at rbtools/commands/diff.py, you'll see that it's calliing 
> "initialize_scm_tool", and one of the results is a "tool" variable. That's 
> an SCMClient instance, which you can run diff() on.
>
> Christian
>
> -- 
> Christian Hammond - chi...@chipx86.com <javascript:>
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Mon, Sep 28, 2015 at 7:42 AM, Ovidiu-Florin BOGDAN <ovidi...@gmail.com 
> <javascript:>> wrote:
>
>> I've gotten this far:
>>
>> from rbtools.api.client import RBClient
>>
>>
>> client = RBClient('http://localhost:8080/')
>> root = client.get_root()
>>
>> repos = root.get_repositories()
>> if repos.num_items < 1:
>>     raise Exception('No valid repositories.')
>>
>> repository = repos[1]
>>
>> review_request = root.get_review_requests().create(repository=repository.
>> id)
>>
>> from rbtools.clients import SCMClient
>>
>>
>> I don't understand how to continue.
>> I don't know how to get the "appropriate arguments"
>>
>> Running SCMClient.diff() with no arguments replies: " 
>> TypeError: unbound method diff() must be called with SCMClient instance 
>> as first argument (got nothing instead)"
>>
>> So I guess I must build SCMClient instance that's specific to this repo. 
>> I don't know how.
>>
>> I find the documentation pretty sketchy and unclear.
>>
>>
>>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to