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

Re: Need checkout commits...

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2005-12-12 11:34:21 CET

I suppose you mean for some type of files you need exclusive write-

You can use locking for that:

Set the needs-lock property to value '*' on all your office files,
so users are obligated to get a lock on this file first before
they are able to change it. ( Similar to VSS Checkout operation ).
The files containing this property will be read-only.
( this is a client operation, not server side )

To make this easy for all your users, create a registry file with lines
like this:





Add lines like "*.zip"="svn:needs-lock=true" for all extensions you
need your users to lock first.

Make them install this file after they install TortoiseSVN and you're
good to go.

hope this helps,


Quoting Maxx <maxx@eureca.ru>:

> Hello!
> We migrate from Visual SourceSafe to Subversion.
> So i must configure subversion for our users:
> a file will block when file is checkout. It is
> need because half of repository files are in
> Microsoft Office format. I try to do this by hook
> scripts. But i appear that hook scripts exist only
> for modify events:
> http://svn.haxx.se/users/archive-2004-07/0865.shtml
> > We generally only have hooks for write operations, not read.
> >
> > If you post saying exactly what you're trying to do, maybe someone can
> > think of another way.
> >
> > -Karl
> So how can i solve my problem? Can i block file in repository by
> hooks?
> Somebody can say that i can execute two commands: checkout and block.
> But as client we used TortoiseSVN, not a command line. Therefore i
> want to solve my problem on server side.
> Thank you.

This message was sent using IMP, the Internet Messaging Program.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 12 11:38:10 2005

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