编辑以独占方式签出的文件
我刚刚开始在一家使用 VSS 的新公司工作,并且关闭了“允许多次结帐”。我可以看到,在这里完成工作很快就会成为一个问题。启用“允许多次结账”可能不是一个选择。
有没有办法让我编辑该文件,然后在文件可用时合并我的更改(使用 VSS 或其他工具)?
I just started at a new company which uses VSS and has "Allow Multiple Checkouts" turned off. I can see that it is going to quickly become a problem getting things done here. Getting "Allow Multiple Checkouts" enabled is probably not an option.
Is there a way for me to edit the file anyway and then merge my changes (either using VSS or another tool) when the file becomes available?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当然,只需使文件可写(单击“获取”按钮以获取对话框时按住 Shift 键...)
然后在合并更改时尽量不要破坏任何内容。
我工作过的商店都不允许多次结账,因为合并过程非常危险。
Sure, just make the file writeable (hold the shift key down when clicking the get button to get the dialog...)
Then try not to break anything when you merge your changes.
No shop I have ever worked in allows multiple checkouts because the merging process is so dangerous.
基本上,没有什么可以阻止您编辑文件。通常这些文件被标记为只读,但您当然可以覆盖它。
但最好要非常小心,因为 VSS 可以让您轻松覆盖其他人的更改。
VSS Studio 中有一个选项可以使文件只读,除非您将它们签出。您可以考虑将其关闭(尽管我不建议这样做)。
我相信,Visual Studio 中还有一个选项允许编辑只读文件。也就是说,如果您尝试编辑 r/o 文件,Visual Studio 将提示您将其设置为可写。这可能更好,因为您不会意外更改文件。
更好的是,从 VSS 迁移到 SVN 或其他现代源代码控制系统。
VSS在稳定性、性能等方面存在很多潜在的问题。
Basically, nothing prevents you from editing the files. Usually these filese are marked read-only, but you can surely override that.
But better be very careful, because VSS would allow you to easily overwrite anyone else's changes.
There is an option in VSS Studio to make the files read-only unless you have them checked out. You might consider turning it off (though I wouldn't recommend that).
I believe, there's also an option in Visual Studio to allow editing read-only files. That is, if you try to edit an r/o file, Visual Studio will prompt you to make it writable. This is probably better, since you will not change the file accidentally.
Even better, migrate from VSS to SVN or another modern source control system.
VSS has lots of potential problems with stability, performance and so on.