[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Get exclusive lock

From: Bráulio Marques Horta <brauliomhorta_at_gmail.com>
Date: Wed, 5 Mar 2008 13:26:58 -0300

> b) when you try to commit without a lock, or

I made a pre-commit hook script that checks if a file is locked before
committing. We actually don't use this scripts yet and it was not fully
tested, but it worked nicely in some tests we made.

It blocks any commit of unlocked files.

IMHO, it just helps teaching people that they always have to lock files with
the needs-lock property. People will notice that they didn't locked the file
only during commit.

So if one edits any file and didn't locked it. During commit it will receive
an error message saying "You have to file file XYZ". Then only after locking
the file he can commit it.

Maybe It is not the best solution but helps...

Braulio
Received on 2008-03-05 17:27:28 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.