delete
delete

Reputation:

What does this symbol mean in Mercurial?

enter image description here

I've majorly refactored my project. I've added some new classes, but I've also RightClick > Deleted classes from within Visual Studio Solution Explorer.

What does the ! symbol mean?

All of the items marked with ! were things I've deleted in VS2010. Will this delete them from the repository as well?

Upvotes: 26

Views: 16872

Answers (2)

rcollyer
rcollyer

Reputation: 10695

As @Riley pointed out, it means they're missing. An alternative method of removing them from the repository is to use hg remove --after <filename>. The comments in the hgbook point out the you can issue the command without specifying the filename, and it will remove all of the missing files, too, but it does complain for every file that isn't missing.

Upvotes: 3

Riley Lark
Riley Lark

Reputation: 20890

Those files are "missing." You haven't explicitly removed those files from the repository, and yet mercurial can't find them.

If you commit with hg commit --addremove then mercurial will remove all of the missing files from the repository. In this case, I think this is what you want to do - you've purposely deleted these files, and you don't want them to appear in future versions of your code. You'll still be able to go to an earlier version and call those files back if you want to.

Upvotes: 35

Related Questions