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

RE: Re : need have a begin transaction on different branch

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Tue, 15 Dec 2009 12:38:54 -0500

> I have the same problem too.
> I'm working  in a company using subversion for its projects
> I need to be able to lock folders on the repository before
> committing them to avoid simultanous commits.
>
> --
> Thy

subversion commits are ACID transactions so simultaneous commits will not cause any problems.

If the file your are commiting isn't up to do svn will return an error.

So, if you an I both submit a change to ^/foo.txt one of us will win the other will get an error that foo.txt is out of date and you need to update and commit again. When you update you will get either a clean merge or a conflict. If a conflict you resolve it and then you can commit again.

So, you really don't need to be able to lock folders to avoid simultaneous commits.

BOb
Received on 2009-12-15 18:39:31 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.