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

Re: File Locking Yet

From: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-07-16 18:40:21 CEST

* Anthony Glover <gloverae@elmco.com> [2004-07-16 10:33]:
> Didn't notice it in the release notes for the latest version, but can
> anyone provide a status on the addition of the locking capability? We
> are in the process of setting up a large repository with numerous
> binary files, and there is some concern over not being able to lock a
> file.

It's in the design phase, and hoped to be included in Subversion 1.2 whenever
that is released. In the meantime, you may be able to "fake it" with a
pre-commit hook that disallows changes to files that have a "lock" property
set. In other words, when some one wants to lock a file, they can set a
property called "lock" (or whatever) to their username. The pre-commit hook
can then disallow changes to that file from everyone except that user. When
the user is done locking the file, they can remove the "lock" property. This
is obviously not an ideal solution, but if locking is important to you, it may
be worth trying in the meantime until Subversion implements locking natively.

-- Mike

-- 
Michael W. Thelen
If you don't know where you are going, you will probably end up somewhere
else.           -- Laurence J. Peter

Received on Fri Jul 16 18:41:46 2004

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.