Pull a certain branch only

Using the mercurial command line I can do the following to pull a certain remote branch into my project (leaving out all the other branches that may exist there):

hg pull -b default http://macserver.cellent.int:8000/scs/

Is there a way to do the same with SourceTree ?

No matter what I tried so far, I always got the complete remote project pulled over - including all branches. I even tried to select the branch in the advanced pull options with no effect.

4 answers

1 accepted

Hi Heiko,

You're right, for some reason it's not honouring that preference when it should be. I've logged it in JAC here: https://jira.atlassian.com/browse/SRCTREE-1672

Many thanks

Is this for Windows or Mac?

Tried it on a Mac !

Just to follow this up, the branch selection won't actually work because you're using the fetch extension. It's still a bug on our part as we shouldn't allow branch selections if you're using the fetch extension. I've disabled the option is the fetch extension is being used from this screen.

Cheers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you