Commiting the delete of a file
Peter Hosey
boredzo at gmail.com
Sun Jul 5 15:07:43 UTC 2009
On Jul 04, 2009, at 04:18:13, SHvD wrote:
> I now decide to delete the BFile from my working directory:
>
> D:\SandboxFolder>del BFile.txt
You must delete the file using Mercurial:
hg rm BFile.txt
> Mercurial knows this, too:
>
> D:\SandboxFolder>hg status
> ! BFile.txt
But it doesn't know that that was intentional. It doesn't know whether
you deleted it intentionally, you deleted it accidentally, or some
software tool deleted it.
As such, Mercurial will not commit a deletion unless you have
expressly told it to do that, because only then does Mercurial know
that you want to do that.
More information about the Mercurial
mailing list