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?
Community moderators have prevented the ability to post new answers.
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
Thanks for the response! This makes sense and clarifies my concern.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.