How to use hg-git with SourceTree?

Admin LLTech November 7, 2011

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

1 vote
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2011

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.

Admin LLTech November 7, 2011

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.

Alejandro Santiago January 20, 2015

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 Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events