"hg addremove" to add back files marked for remove?
Matt Mackall
mpm at selenic.com
Fri Jun 11 13:59:52 UTC 2010
On Fri, 2010-06-11 at 13:29 +0100, Roman Starkov wrote:
> Here's what I did:
>
> - Delete a bunch of files
> - hg addremove
> - hg status
> - Observe that the output has a few more "remove" files than I expected
> - Put those files back by copying from elsewhere
> - hg addremove
addremove only operates on files with status ? or !.
> Is there some way to mark these files for add that's as easy as "hg
> addremove"?
If you're using a Unix system:
hg st -rn0 | xargs -0 hg add
Basically 'call hg add on the list of all removed files'.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list