Filename expansion (Re: hg add with special file names)

Bryan O'Sullivan bos at serpentine.com
Fri Sep 23 09:42:06 CDT 2005


On Fri, 2005-09-23 at 14:48 +0200, Jan Hudec wrote:

> The default behaviour is broken on Unix and this is a proof. On Unix the
> shell does the expansion, so programs don't have to.

Mercurial has more extensive pattern matching support than the shell
does, so the current behaviour makes sense.  Yes, it breaks in rare
cases, but that's why keyboards have quote keys.

> There is one more thing -- hg add should say something when passed a
> file that does not exist

You mean the way it already does, or something else?

$ hg add notexist
notexist: No such file or directory

	<b



More information about the Mercurial mailing list