Mercurial 中这个符号是什么意思?
我主要重构了我的项目。我添加了一些新类,但我也添加了 RightClick >从 Visual Studio 解决方案资源管理器中删除了类。
的 是什么意思?符号是什么意思?
所有带有 ! 标记的项目是我在VS2010中删除的东西。这也会将它们从存储库中删除吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这些文件“丢失”。您尚未从存储库中显式删除这些文件,但 Mercurial 无法找到它们。
如果您使用 hg commit --addremove 进行提交,则 Mercurial 将从存储库中删除所有丢失的文件。在这种情况下,我认为这就是您想要做的 - 您故意删除了这些文件,并且您不希望它们出现在代码的未来版本中。如果需要,您仍然可以转到早期版本并调用这些文件。
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.正如 @Riley 指出,这意味着他们'又失踪了。从存储库中删除它们的另一种方法是使用
hg remove --after
。 hgbook 中的评论指出您可以发出命令而不指定文件名,它也会删除所有丢失的文件,但它确实会抱怨每个未丢失的文件。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.