在 AnkhSVN 中禁用自动结账
我正在使用 Visual Studio 2k8 和 AnkhSVN。
当我开始修改文件时,它会自动签出。 如何禁用它?我不想意外修改我的文件。
I'm using Visual Studio 2k8 with AnkhSVN.
When I start to modify file, it's automatically checkouted. How can I disable it? I don't want to accidentally modify my files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在您将文件重新签入之前,您的文件不会在 Subversion 存储库中进行修改。即使将它们重新签入,您仍然可以将它们回滚到之前的任何点。
因此,无需担心意外执行某些操作...这就是版本控制的全部意义!
Your files will not be modified in your Subversion repository until you check them back in. And even when they are checked back in, you can still roll them back to any previous point.
So, no need to worry about doing something accidentally...that's the whole point of version control!
您所谓的“签出”只是意味着该文件已在您的计算机上被标记为本地修改(SVN 服务器对此一无所知)。这与 ClearCase 不同,ClearCase 中文件实际上是在服务器上签出的。因此,正如迈克尔建议的那样,您实际上不必担心它,您随时可以在本地恢复它。如果您只是在 VisualStudio 中使用撤消,该文件将再次被标记为未修改。
What you call "check-out" just means the file has been marked as modified locally on your machine (without the SVN server knowing anything about it). This is different than say, ClearCase, where the file is actually checked out on the server. So as Michael suggests, you don't really have to worry about it, you can always revert it locally. And if you just use Undo in VisualStudio, the file will again be marked as not modified.
其他一些答案已经暗示:您不会使用 SVN“签出”文件。听起来您是出于 ClearCase/SourceSafe 心态。 SVN 采用不同的版本控制模型。当您“签出”工作副本时,您正在从存储库中提取文件的最新版本。您可以自由修改其中的任何。完成编辑后,您可以将它们推送、“提交”回服务器。
我可以喋喋不休,但我不会搞砸它,我只会向您指出事实上的标准 SVN 手册 - 这里第一章解释了SVN使用的版本控制模型。
What some of the other answers have hinted at: You don't "checkout" files with SVN. It sounds like you're coming from a ClearCase/SourceSafe mentality. SVN works on a different versioning model. When you "checkout" a working copy, you're pulling down the latest version of the files from the repository. You are free to modify any of them. Once you are done with your edits, you push, "commit" them back to the server.
I could ramble on and on, but instead of botching it, I'll just point you to the de-facto-standard SVN Manual - here's the first chapter which explains the versioning model that SVN uses.
打开 AnkhSVN 配置对话框(工具 -> AnkhSVN -> 配置...)并将 DisableSolutionReload 设置为 True。
还有一个选项可以执行相反的操作,即防止它自动向 SVN 添加新文件,您可以禁用该选项(将 AutoAddNewFiles 设置为 False)。
Open the AnkhSVN Conviguration dialog (Tools->AnkhSVN->Configuration…) and set DisableSolutionReload to True.
There is also an option to do the opposite—to prevent it from automatically adding new files to SVN—that you can disable (setting AutoAddNewFiles to False).