How is the branch destination determined when creating a branch?

rtn-martavis June 30, 2015

Hi,

I'm a bit confused about how the branch destination is chosen when creating a new branch. The scenario is, let's say I have two branches, "trunk" which is the main branch and "dev" which is a branch off of trunk. Now, when creating a feature branch, I choose to branch from dev. 

The problem is, when I choose to branch off dev and get to the branch's home screen, I see this:

shot_150630_100649.png

Notice the destination is trunk. As a user, I'm expecting since I branched from dev, that my destination would be the dev branch. Can I do something about this? Is this a bug or can this be changed as a new feature?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Gary
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2015

Hi Martavis,

The branch page (https://bitbucket.org/user/repo/branch/branch_name) always shows the top level branch (master), and then the current branch you are on. The page always defaults this way, and shows the differences between the 2 branches below that, once their has been activity for the branches. You can change the top level branch, and then the comparisons below will change to show the branch you are on compared the top level branch you just selected.

This page is intended to be completely separate from the 'create branch' page/feature, and is not actually representing the architecture of your repo, and branches. The branch you originally created is still branched off of the branch you set, and should be represented when you look at the tree locally.

Cheers,
Gary 

rtn-martavis June 30, 2015

Thanks for the response! This makes sense and clarifies my concern. 

Like Andrey Kolchin likes this
tbroniewski November 13, 2018

Ok, so what, in that context, does the word "destination" mean? I'm asking because the word can be confused with destination branch in case of creating new one... (when we're considering 'create branch' feature).

Like # people like this
Johan_Maes March 13, 2019

Still doesn't make much sense to me since the same page contains a button 'Create pull request' which then uses the destination on this page as the destination. Wouldn't it then be more logical to automatically set the branch you branched off off as the destination?

Like # people like this
TAGS
AUG Leaders

Atlassian Community Events