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

Locks on the repository - Further information

From: Mayank Gupta <mayank.gupta1_at_induslogic.com>
Date: 2006-07-28 11:21:08 CEST

Hi,

The reason is following:

When I run the build, it takes around 30 minutes. In the build process I
first do the checkout of source code, and then perform the build operations
in sequence. My last build operation is a checkin in which I checkin some of
the files created by the build process.

To explain it further:
Before starting the build, subversion head number is 800.
Now I run the build and finally checkin few files and head number becomes
801. We consider 801 as the build release number.

But if somebody else comes in between and checks in his source code, he will
occupy 801 and I will get 802 (802 will be the release) and thus he will
corrupt the whole build process because 802 does not have the exact release
files.

So I want to solve this problem by locking the repository for the build
time. I can add repository lock/unlock steps in my build process.

With Regards,
Mayank

-----Original Message-----
From: Erik Hemdal [mailto:erik@comprehensivepower.com]
Sent: Thursday, July 27, 2006 8:53 PM
To: 'Mayank Gupta'; users@subversion.tigris.org
Subject: RE: Locks on the repository

> Hi All,
 
> Please let me know if I can lock the entire subversion repository with a
single command. What I understand
> that "svn lock" locks a single file but not a URL or entire repository.
 
> Or let know if there is some other way to perform the above steps.

What do you want to accomplish by locking the repository? This might
influence the answer.

For instance, if I want to prevent access to the repository while I work on
our server, I can prevent xinetd from starting the Subversion server, which
locks out users. If you are trying to obtain a reliable backup, it might
not be necessary to lock anything at all.

Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 28 11:22:13 2006

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.