简体   繁体   中英

How to make SmartGit/Hg find mercurial in a non-english system?

I found a wonderful version control software in the internet which is called smartgit/hg.Before using it I have to set the executable path of git and hg. The git executable path is automatically set to "/usr/bin/git",which is corrected.But the executable path of hg is always having some issue.When I set it to "/usr/bin/hg",smartgit/hg give me a wrong error that the executable path is wrong. 错误截图

My Ubuntu version is 12.04LTS, SmartGit/Hg version is 4.5, Mercurial version is 2.0.2.JDK version is 1.7(OpenJDK)

please set your env language to be English(sorry, I have not reputation to show images). smartgit/hg use 'hg --version' to get the version of hg, if your env language is not english, it will be not get the version correctly.

after the smartgit/hg set hg executable path OK, you should rollback your env language.

Find out where hg executable is and add that to the variable PATH. You can look into the file .profile in your home directory to add the directory to the PATH as it should be defined there.

I tried to squint and read your error message but could only make out that Mercurial is not valid. Can you transcribe the complete error in that window?

This is a problem in SmartGit/Hg due to checking mercurial version through hg --version message and expecting english. In a portuguese brazilian system one gets:

$ hg --version 
Sistema de controle de versão distribuído Mercurial (versão 2.2.2) 
(veja http://mercurial.selenic.com para mais informações) 

Copyright (C) 2005-2012 Matt Mackall e outros 
Este software é livre; veja os fontes para condições de cópia. Não 
há garantias, nem mesmo de adequação para qualquer propósito em 
particular.

SmartGit/Hg fails on version verification in non-english languages.

Lastest build solved this by setting LANGUAGE and LANG environment variables when executing hg for version verification, this solved the issue for me under Ubuntu 13.04.

Resolution thread:

http://smartgit.3668570.n2.nabble.com/mercurial-executable-is-not-valid-td7573911.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM