remove command goes walkies

Bryan O'Sullivan bos at serpentine.com
Thu Sep 1 12:11:16 CDT 2005


On Thu, 2005-09-01 at 13:01 -0400, Chris Mason wrote:

> You could just drop the warning.  You're seeing it because the
> directory isn't in the map.

It's not quite that simple.  I put that warning in there so that
commands like:

        hg dosomething file-that-never-existed

wouldn't simply exit silently without telling you you've done something
wrong.

What needs to happen is a little trickier.  We want to warn about an
exact name foo that is not in the filesystem, not in the dirstate map,
and not a directory-like prefix of entries in the dirstate map (i.e.
there are no files matching the regexp "foo/.*").

	<b



More information about the Mercurial mailing list