Converting \r and \n
Simon King
simon at simonking.org.uk
Wed Dec 17 16:43:22 UTC 2014
On Wed, Dec 17, 2014 at 3:37 PM, Harvey Chapman <hchapman-hg at 3gfp.com> wrote:
> I’m trying to clone (using hggit) and continue to use a git repo containing a folder named “Icon\r”. Mercurial is telling me "abort: '\n' and '\r' disallowed in filenames”. Is there a way to have the offending names mapped to something safe for mercurial? I’m not even going to touch those files.
There is a mercurial config setting, ui.portablefilenames. Quoting
from http://www.selenic.com/mercurial/hgrc.5.html:
Check for portable filenames. Can be warn, ignore or abort. Default is
warn. If set to warn (or true), a warning message is printed on POSIX
platforms, if a file with a non-portable filename is added (e.g. a
file with a name that can't be created on Windows because it contains
reserved parts like AUX, reserved characters like :, or would cause a
case collision with an existing file). If set to ignore (or false), no
warning is printed. If set to abort, the command is aborted. On
Windows, this configuration option is ignored and the command aborted.
Are you on Windows? If so, I'm not sure there's anything you can do.
I'd be interested to hear how git handles this situation.
Simon
More information about the Mercurial
mailing list