[PATCH 0 of 3] Add a 'forget' command for untracking files

Greg Ward greg-hg at gerg.ca
Sun May 31 14:28:46 CDT 2009


On Sun, May 31, 2009 at 2:38 PM, Steve Losh <steve at stevelosh.com> wrote:
> This patch adds a new top-level command: 'forget'.  This command does exactly what 'hg remove -Af' does: it untracks files without deleting them.
>
> Why implement a new command?  Because the options of 'hg remove' are confusing and non-intuitive.  If -A only removes deleted files, and -f forces deletion, why should using both do *the opposite of both of them*?

Sounds like a good idea to me.  I always scratch my head in confusion
when reading the "hg remove" help, and it only just occurred to me
that *it's not me, it's the syntax*.

> This is my first time sending a patch, so if I did something wrong or forgot to do something please let me know!

I'm fairly new myself, but I get the impression that people prefer to
have test patches folded into the main patch.

Also, if it makes any sense to modify an existing test script rather
than adding a new one, I think that is preferred.  The tests take a
long time to run, and anything we can do to keep them getting too much
longer is a good thing.

Greg



More information about the Mercurial-devel mailing list