Setting on Mercurial server for SourceTree

I built a Mercurial server in my test bed.
The repository can be cloned and pushed without any problem from hg command on Solaris/Linux box.

However, trying to clone the same repository from SourceTree for Windows, it seems to be unable to recognize, but it tells me it is an invalid repository type.

What are the settings I should check to include in hgrc for SourceTree to recognize as a Mercurial repository?

1 answer

0 vote

Hi Hisao, when you receive that error message you should be getting a "Details" button too. Can you let us know what does it say when clicking on it?

Apart from that, can you provide the following information:

  1. SourceTree version and OS version
  2. Log file, you can find its location at SourceTree logfile location
  3. Run this command followed by the URL of the repo you're trying to clone, and send us the input 
    hg identify {URL}

Best regards,

Ana

Hi Ana,

Thank you for your prompt answer.

1. SourceTree 2.1.2.5 (Windows)

2. The log file is quite large, so I am quoting the part of the log.  If you need the full log, please let me know how to upload it.

ERROR [2017-06-30 17:59:15,615] [39] [SourceTree.ViewModel.CloneNewDialogViewModel+<CheckSource>d__197] [MoveNext] - Could not determine repository from: 'http://ht3.jp.acme.com/hg', output was:
ERROR [2017-06-30 17:59:15,616] [39] [SourceTree.ViewModel.CloneNewDialogViewModel+<CheckSource>d__197] [MoveNext] - System.ComponentModel.Win32Exception: 指定されたファイルが見つかりません。
*** failed to import extension hggit: No module named hggit
abort: HTTP Error 502: notresolvable
fatal: unable to access 'http://ht3.jp.acme.com/hg/': The requested URL returned error: 502

3. Please see below.

D:\htsujimu\Documents\02_CU>C:\Users\htsujimu\AppData\Local\Atlassian\SourceTree\hg_local\hg.exe identify http://ht3.jp.acme.com/hg
*** failed to import extension hggit: No module named hggit
abort: HTTP Error 502: notresolvable

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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 ...

708 views 0 4
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