Is there a way to automatically poll svn for a released lock?

In a project I'm working on, we have a file with svn: require-lock, which is often in conflict. We often have to chat with each other, "let me know when you're done with X". Unless it is very urgent, I would rather not interrupt my colleague if I don't need to.

Is there a utility out there that will create a background process that will poll svn and pop up a dialog box or system tray notification when the lock is released?

I'm on Windows and using TortoiseSVN, but even a python script that I could run in a command window would be better than nothing.

+2


source to share


2 answers


SVN has hook scripts that can be executed on lock / unlock events ( read SVN book ). You can add an email / IM notification command for one of these scenarios.



Commit Monitor is also good for this kind of thing. http://tools.tortoisesvn.net/CommitMonitor

+3


source


Take a look at this Advanced Locking with SVN page . It describes methods for determining the status of a file (see the Section called Locking Detection .) You can use this information to write a small program to "poll" the status and determine when a file is locked / unlocked. Since you know files that have the svn: needs-lock property, this should be pretty easy.



+3


source







All Articles