filenames with "-" and ":"

Matthieu Moy Matthieu.Moy at imag.fr
Mon Sep 3 03:35:25 CDT 2007


Ulrich Spoerlein <uspoerlein at gmail.com> writes:

> On Sat, 01.09.2007 at 21:40:18 -0700, Jens Alfke wrote:
>> I haven't actually run into this, but there can be problems using 'hg'  
>> subcommands on files with certain types of names.
>> [...]
>> It might also be worth pointing this out in the manual. Or even adding  
>> a special command-line flag like a plain '-' that disables special  
>> interpretation of all following arguments.
>
> Erm, '--' is the canonical UNIX way of saying: Stop argument processing
> here.

IIRC, that's "usual", but non-posix. I don't know whether this
qualifies for "canonical" ;-).

The other usual trick being:

$ hg whatever ./-dashfile ./:columnfile

-- 
Matthieu


More information about the Mercurial mailing list