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

atomic locking

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-01-18 19:06:18 CET

Is there a way to get svn_client_lock to do an all-or-nothing lock?

 

Right now when it encounters an error during lock the function gives a
warning but keeps locking.

 

For instance:

  user1% svn lock a

  user2% svn lock a b

  svn: warning: Path '/trunk/a' is already locked by user 'user1 in
filesystem '/svn/test/db'

  'b' locked by user 'user2.

 

Is this a bug or intended behavior? I can see this being useful for
collections of binary data.

 

Thanks,

Eric
Received on Thu Jan 18 19:06:41 2007

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