[PATCH stable] add: add back forgotten files even when not matching exactly

Martin von Zweigbergk martinvonz at google.com
Tue Nov 11 09:42:06 CST 2014


 On Tue, Nov 11, 2014, 06:17 Augie Fackler <raf at durin42.com> wrote:

On Mon, Nov 10, 2014 at 03:18:32PM -0800, Martin von Zweigbergk wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz at google.com>
> # Date 1415659878 28800
> #      Mon Nov 10 14:51:18 2014 -0800
> # Node ID eaf1154e17256fb20ce3ef7989ea849904e4c8b2
> # Parent  2d54aa5397cdb1c697673ba10b7618d5ac25c69e
> add: add back forgotten files even when not matching exactly

This looks reasonable to me.

>
> The output from the following two invocations should be the same, but
> it's not.
>
>   $ hg forget README && hg add README && hg status -A README
>   C README
>   $ hg forget README && hg add . && hg status -A README
>   R README

I assume the intent is that the latter case will look like the former
after this change?



 Right. It should be clear with the subject line fresh in mind, but I
should have said it explicitly. I'll make it clearer and resend. I might
also include the use case that made me find this bug (accidental use of "hg
forget .").
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20141111/89f11566/attachment.html>


More information about the Mercurial-devel mailing list