My first experience with Mercurial

May 01, 2009 08:33


~$ hg Traceback (most recent call last): File "/usr/local/bin/hg", line 18, in mercurial.util.set_binary(fp ( Read more... )

Leave a comment

Comments 13

graydon May 1 2009, 00:13:59 UTC
Hey, at least it didn't delete all your code.

Reply

vorotylo May 17 2009, 15:04:19 UTC
It must have made him stronger then? :)

Reply


anonymous May 1 2009, 02:52:55 UTC
Are you using 0.9.x by any chance? This was fixed in 1.0. I recommend upgrading to 1.2.1, if you can.

Alternatively, set your LANG/LC_* environment variable to something that's valid, like en_US.UTF-8. Just "UTF-8" by itself isn't valid.

Reply

anonymous May 1 2009, 12:34:50 UTC
Same here.
On ~/.bash_profile:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Reply


ahefner May 1 2009, 04:01:18 UTC
That's consistent with my experience with applications written in Python (earlier today I was griping that Quod Libet, a python music player, won't run). Sometimes they work, sometimes the distro breaks them. It's a shame - hg look neat and git is awful, but at least it's written in C. =/

Reply

ahefner May 1 2009, 05:00:42 UTC
Quod Libet has significantly more complex dependencies than Mercurial. Mercurial is actually written in a combination of Python and C. I believe Git is written in C and shell scripts.

In this case, it isn't a distro problem.

Reply

leon03 May 1 2009, 19:14:01 UTC
Why's git awful? I've been pretty satisfied with it so far...

Reply

ahefner May 1 2009, 22:19:55 UTC
Difficult question. I don't think this is the appropriate forum to complain in length about Git, but I just can't pass up the opportunity. Sorry, Luke ( ... )

Reply


anonymous May 1 2009, 04:12:02 UTC
You've managed to trigger a failure of:

locale.getlocale()

...in Python's standard library. Which is not the fault of hg. Whether it's the fault of Python (for assuming LC_CTYPE is set reasonably) or Unix n00bs at Apple (not knowing how to set LC_CTYPE in Terminal) isn't clear.

Reply

anonymous May 1 2009, 04:58:47 UTC
It was definitely a bug in Mercurial. That function specifically raises that exception to be caught by the application.

Reply



Leave a comment

Up