Hi Vinod,

You're actually landing onto a branch, which is associated with a remote.
Say, "master", not "origin/master". That branch can then be pushed. So you
can use --dest or LAND_DEST_BRANCH to specify where that is.

For instance, on Review Board, we have release-2.0.x, release-2.5.x, etc.
branches locally that match corresponding origin/release-* branches. We
land on the local branches, and then push.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Wed, Feb 17, 2016 at 9:31 AM, Vinod Kone <vinodk...@gmail.com> wrote:

> I don't think "--dest" flag lets you specify the custom remote.
>
> If you look at
> https://github.com/reviewboard/rbtools/blob/b3f699d44b22fb2a0de7f79cbd48975431c05f72/rbtools/clients/git.py#L834
> , there is a call to get_origin() to figure out the remote. Since that
> method is called without any parameters, it doesn't work with custom
> remote; it always results in remote being "origin".
>
>
>
> On Saturday, February 13, 2016 at 2:20:53 AM UTC-8, Barret Rennie wrote:
>>
>> Hi Vinod,
>>
>> You want the LAND_DEST_BRANCH variable or --dest flag.
>>
>> Regards,
>> Barret Rennie
>> On Feb 12, 2016 2:04 PM, "Vinod Kone" <vino...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I was playing around with the the new 'rbt land' command and looks like
>>> it assumes tracking branch to be "origin/master"?
>>>
>>> In my clone of the repo I've multiple remotes configured and I'm trying
>>> to figure out how to tell 'rbt land --push' to push to a remote that I
>>> want. From looking at the code for land command, it looks the the remote is
>>> derived from the tracking branch. But it doesn't look like
>>> '--tracking_branch' is an available option for this particular command. I
>>> tried setting TRACKING_BRANCH in .reviewboardrc but even that doesn't get
>>> picked up by the `land` command. Am I missing something?
>>>
>>> Thanks,
>>> Vinod
>>>
>>> --
>>> 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...@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
> "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.
>

-- 
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