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

Re: locking files

From: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2003-09-17 17:19:32 CEST

kmoulton@chisystems.com writes:

> I am in need of a solution which will allow me to lock files and to notify
> users when they attempt to checkout a file that the file is being used by
> someone else. I have copied a suggested solution but I am not sure I
> understand this correctly. It is suggesting that the pre-commit hook be used
> to maintain a lock database. If I understand things correctly the pre-commit
> Event is actually activated when the user attempts to commit a file.

> I would think we would need a pre-checkout and post checkout hook. This way
> when someone went to checkout a file it would let them know that it was
> checkout or not by looking at the status of the lock database. If they
> checked it out it would then update the lock database. As far as I can tell
> there are not pre or post checkout events so this solution would not work.
> Could someone let me know if my thinking is correct here.

Lotsa discussion has taken place about this, and it's already filed as a
post-1.0 feature request:

    http://subversion.tigris.org/issues/show_bug.cgi?id=1478

For lots of notes on how to implement this, see:

    http://svn.collab.net/repos/svn/trunk/notes/locking-plan.txt

-Fitz

--
Brian W. Fitzpatrick    <fitz_at_red-bean.com>   http://www.red-bean.com/fitz/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 17 17:20:28 2003

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.