As many users already know the NetBeans repository migrated from CVS (cvs.netbeans.org) into Mercurial(hg.netbeans.org). I have already installed Mercurial binaries from http://mercurial.berkwood.com/ on my Mac OS X (running with Leopard). I have met the problem with running of hg. It was not possible to clone testing repository from command line. The command hg clone http://hg.netbeans.org/main finished with the following output:
[.JARa]/space/tmp/tmprepository #hg clone http://hg.netbeans.org/main
Traceback (most recent call last):
File "/usr/local/bin/hg", line 14, in
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 20, in run
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 26, in dispatch
except util.Abort, inst:
File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 74, in __getattribute__
File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 46, in _load
mod = _origimport(head, globals, locals)
File "/Library/Python/2.5/site-packages/mercurial/util.py", line 32, in
_encoding = locale.getlocale()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 460, in getlocale
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 373, in _parse_localename
ValueError: unknown locale: UTF-8
The problem is that the system property LANG was set to UTF-8. There are 2 solutions how to make hg to be working correctly:
1. Simply execute command export LANG="" or better just unset LANG. The disadvantage is that this doesn't work globally so that you may want to write it to the proper user config files.
2. The second option is to go to the Terminal Preferences, then select the tab Advanced in Settings category. You need to deselect the checkbox on the bottom of the dialog.
The Settings dialog of Terminal.
You can find useful some links related to NetBeans migration to Mercurial:
-http://wiki.netbeans.org/wiki/view/HgMigrationDocs - NetBeans hg migration document
-http://wiki.netbeans.org/HgHowTos - How To page
-http://mercurial.berkwood.com/ - hg binaries
-http://www.selenic.com/mercurial/wiki/ - selenic home page