hg remove problem

Neal Becker ndbecker2 at gmail.com
Fri Apr 20 07:28:29 CDT 2007


Neal Becker wrote:

> hg help remove
> hg remove [OPTION]... FILE...
> 
> remove the specified files on the next commit
> 
>     Schedule the indicated files for removal from the repository.
> 
>     This only removes files from the current branch, not from the
>     entire project history.  If the files still exist in the working
>     directory, they will be deleted from it.  If invoked with --after,
>     files that have been manually deleted are marked as removed.
> 
> 
> [nbecker at nbecker4 mod]$ hg remove --after matrix.hpp
> matrix.hpp: No such file or directory
> matrix.hpp: No such file or directory
> 
> Doesn't this contradict the stated help documentation?

I see now that the file I tried to rm had never been added.  My mistake. 
Error message is confusing.  Should say 'foo not in inventory', or 'nothing
known about foo' or something like this.



More information about the Mercurial mailing list