It is possible to run `rbt post` from outside of a source tree, but it
requires manually specifying the server and repository in your command
line. This is what it's trying to detect when it fails looking at the cwd.
You will also need to provide *some* authentication. Whether that's loaded
from ~/.rbtools-cookies, a username/password on the command line, or an API
key on the command line is your choice.
-David
On Fri, Jan 26, 2018 at 4:54 PM wrote:
> I'd like to automatically open review requests when people commit to
> particular branch names.
>
> I've got hooks in place that can start a process on any commit, compare
> the branch name against a regular expression and then proceed from there.
>
> My code knows how to create a diff itself and does so already. I'd thought
> that with a diff I could just
>
>diffgenerator | rbt post --submit-as=USER --diff-filename=-
>
> I get an error though:
>
>ERROR: The current directory does not contain a checkout from a
> supported source code repository.
>
> That's right. Many of the repos have a .reviewboardrc file checked in, so
> I'm not running the command from those directories because I want my
> .reviewboardrc file with my "special" user for sending --submit-as commits.
> I'd rather not have to put the user/password on the command line.
>
> Is this doable? What do I need to change to get this to work?
>
> I'm not running latest and greatest, I could upgrade if needed, but I'd
> rather wait a little longer.
>
> RBTools 0.7.10
> Review Board 2.5.10
>
> --
> 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
> "Review Board Community" 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.
>
--
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
"Review Board Community" 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.