filenames with "-" and ":"
Ulrich Spoerlein
uspoerlein at gmail.com
Sun Sep 2 06:16:22 CDT 2007
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.
$ hg init .
$ touch -- -test -v -f -l 1:2
$ hg add -- -test -v -f -l 1:2
$ hg ci -m "foo" -- -test -v -f -l 1:2
$ rm -- *
$ hg update
5 files updated, 0 files merged, 0 files removed, 0 files unresolved
Cheers,
Ulrich Spoerlein
--
It is better to remain silent and be thought a fool,
than to speak, and remove all doubt.
More information about the Mercurial
mailing list