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:
> 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.
> 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
>> 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
>> review_request = root.get_review_requests().create(repository=repository.
>> 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:
Want us to host Review Board for you? Check out RBCommons:
Happy user? Let us know! https://www.reviewboard.org/users/
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.