I'm new to Subversion (SVN) coming from a Visual Source Safe (VSS) background. In VSS the person editing a file checks the file out and it locks the other users from editing it through Visual Studio. I understand that SVN is a concurrent model allowing multiple people to work on the same file and later merge the changes together. My question is this:
What is the best approach to avoid having users editing the same file(writing tons and tons of code) and either facing a complicated merge for their changes or even worse writing a ton of code only to find that the file is locked by another user?
Is there a way to notify a user when retrieving a file that it is currently being edited by another user or currently locked by another user?
Other Details:
Using VisualSVN Server as SVN Server.
Using TortoiseSVN and AnkhSVN clients.
I'm also a former Visual Source Safe user. Merges used to drive me crazy until I realized that it is not a technology problem, but a people issue. When using VSS, most developers try to get as much work done as possible, before they have to check in code. This behavior is what was contributing to complicated merges.
Here are a few things to mitigate this:
Those things helped immensely, especially as the teams I worked in kept getting bigger and bigger. Replicating the lock behavior from VSS is a very bad idea, and will cause more problems. Just embrace the new workflow.
If you still want to use a tool, then I suggest that you look at SVNMonitor.
I would like to suggest taking a different approach to using subversion.
With this approach, merging is usually infrequent and happens automatically. In the case of conflicts, these are often smaller.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With