VSS项目,是否必须将它们设置为“只读”? 或者我可以使文件可写吗?
在我的VSS项目的工作文件夹中,如果我将所有文件/文件夹设置为可写可以吗? 即不是只读的?
In my working folder of a VSS project, is it alright if I make all the files/folders writable? i.e. not readonly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,但为什么要这么做呢?
只读状态是一种保护措施,因此您无法更改未锁定的代码。 避免在不久的将来可能出现的合并问题。
编辑:好的,在评论中您说构建失败,因为文件不可写。 如果是这样,那就很奇怪了。 特别是如果错误消息表明无法访问该文件。
它可能仍然被另一个进程锁定,并且更改只读标志删除了锁定(或者它只是需要延迟)。 但据我所知,编译器在处理只读源文件时确实表现出色。
可能的问题:
It is ok, but why should you?
The read only state is a safeguard so you can't change code that is not locked. Avoiding possible merge troubles in the near future.
Edit: Ok in the comment you said that the build failed because the file was not writable. If so, then it is very strange. Especially if the error message said something about not able to access the file.
It was probably still locked by another process and changing the readonly flag removed the lock (or it just needed the delay). But as far as I know, compilers do work excelent with read only source files.
Possible problems: