Special characters in commit message on command line

Matt Mackall mpm at selenic.com
Fri Jun 17 13:48:25 CDT 2011


On Fri, 2011-06-17 at 13:42 -0500, Robert Altman wrote:
> Is there any way to enter special characters in a commit message when typing
> at the command line?
> 
> For example:
> hg commit -m"Too many changes to describe!"
> hg commit -m"Changes 'mebabytes' to megabytes'"

On Windows, this will be hard. The console and the GUI (ie where your
usual commit editor lives) don't agree about how to encode characters,
so Mercurial goes by the _GUI's_ idea of the current encoding.

Elsewhere, this should just work, provided you know how to type said
characters.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list