1

Mercurial's output may be localized. This is nasty when parsing command output and it actually may break such code. Is there some command line option or environment variable which can be used to force Mercurial to use English locale?

Filburt
  • 17,626
  • 12
  • 64
  • 115
mstrap
  • 16,808
  • 10
  • 56
  • 86
  • More or less a duplicate of http://stackoverflow.com/questions/4592664, however the common term "locale" wasn't used there at all, hence it didn't show up when asking this question and for my initial search. – mstrap Jun 07 '13 at 08:39

2 Answers2

3

If you're writing script that interact with the mercurial executable then you probably want to look at the Command Server, or if you're writing python scripts hgapi.

These will give you interfaces which don't have localised strings in them.

Paul S
  • 7,645
  • 2
  • 24
  • 36
2

For a linux shell (Bash, bsh, sh), use:

LANG=en_US hg <status/log/etc>
Rudy Matela
  • 6,310
  • 2
  • 32
  • 37