|
|
.JARa's Bilingual Weblog
Life's better with NetBeans
|
|
|
(EN) NetBeans repository moved to Mercurial
(

Pondělí leden 28, 2008 )
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
mercurial.dispatch.run()
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 20, in run
sys.exit(dispatch(sys.argv[1:]))
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__
self._load()
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()[1]
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
|
|
|
Posted by jara
( I 28 2008, 09:45:58 dop. CET )
Permalink
(CS) NetBeans repository je na Mercurialu
(

Pondělí leden 28, 2008 )
Jak už mnozí asi vědí NetBeans repository přešla z CVS (cvs.netbeans.org) na Mercurial(hg.netbeans.org). Když jsem si nainstaloval Mercurial "binárky" z http://mercurial.berkwood.com/ na můj Mac OS X (běží mi tam Leopard), narazil jsem na problém při spouštění hg. Nebylo možné si naklonovat repozitory z command line. Příkaz hg clone http://hg.netbeans.org/main skončil vždy s následujícím výstupem:
[.JARa]/space/tmp/tmprepository #hg clone http://hg.netbeans.org/main
Traceback (most recent call last):
File "/usr/local/bin/hg", line 14, in
mercurial.dispatch.run()
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 20, in run
sys.exit(dispatch(sys.argv[1:]))
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__
self._load()
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()[1]
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
Problém byl v tom, že systémová proměnná LANG byla nastavena na UTF-8. Jsou 2 možnostu jak přimět hg aby začal fungovat správně:
1. Jednoduše příkazem export LANG="", nebo lépe unset LANG. Nevýhoda je, že tohle nefunguje globálně takže je možné zapsat to do příslušného konfiguračního souboru uživatele.
2. Druhá možnost je přes Terminal Preferences, pak vybrat záložku Advanced v Settings categorii. Tam je potřeba odznačit checkbox, který se nachází dole na dialogu.
Settings dialog pro Terminál.
Následující linky vztahující se k migraci NetBeans na Mercurial mohou být užitečné:
-http://wiki.netbeans.org/wiki/view/HgMigrationDocs - NetBeans hg migration dokument
-http://wiki.netbeans.org/HgHowTos - stránka s HowTo
-http://mercurial.berkwood.com/ - stránka s binární soubory hg
-http://www.selenic.com/mercurial/wiki/ - selenic home page
|
|
|
Posted by jara
( I 28 2008, 09:45:44 dop. CET )
Permalink
|
|
|
|
| Archives |
|
|
| « leden 2008 » | | Po | Út | St | Čt | Pá | So | Ne |
|---|
| | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | | 23 | 24 | 25 | 26 | 27 | | 29 | | 31 | | | | | | | | | | | | | Today |
|
|
|
| Search |
|
|
|
|
|
|
| Contact |
|
|
Name: Jaromír Uhřík
E-mail: Jaromir.Uhrik@Sun.Com
ICQ: #265092035
RSS:
|
|
|
| Links |
|
|
|
|
|
| Visits map |
|
|
|
|
|
| Referrers |
|
|
|
Today's Page Hits: 223
|
|
|
|
|
|