Edit a file that is exclusively checked out

痞子三分冷 提交于 2019-12-19 10:45:28

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/7850266/edit-a-file-that-is-exclusively-checked-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!