How to use hg-git with SourceTree?

I have a repository using hg-git, using Hg 2.0. Hg-Git was installed with easy_install, in system's site-package.

I tried to tell SourceTree to use system's Hg, but it failed (I assume it's because Hg 2.0 can't be patched by SourceTree), now is there a way to tell embedded SourceTree's Hg to use hg-git?

1 answer

Using hg-git isn't supported right now. It may be supported in 1.3 just as a fluke, because the support for subrepositories means that hg needs to be able to call git to deal with git subrepos.

In general I'm not sure why you'd use hg-git if you're using SourceTree, since SourceTree supports both git and hg natively. Surely it would be far simpler just to use git directly instead, since SourceTree frees you from having to know the command-line details.

Thanks Steve; I need it because I use bothe Hg and Git working copies, for my specific needs (having a Git base repo, some of my users are using Hg as working copy since it's easier to use), so I want to have the possibliity to browse a Hg version of my repo.

Hi, It may come in handy as Unity Cloud uses Git as repo monitoring for the continuos integration build system. I do use Hg for most of my projects and it will be helpful to push release commits to a git repository in order to kickstart the cloud build process

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

256 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot