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

AW: Temporarily locking a subversion repository

From: Felix Gilcher <gilcher_at_exozet.com>
Date: 2006-02-01 15:44:14 CET

Hi,

Adam Lau <mailto:adam@lau.net.au> schrieb am Mittwoch, 1. Februar 2006 04:55:

> Hi,
>
>
>
> As part of our continuous integration process I have a nant
> script that pulls a fresh copy of the source (svn checkout)
> from our subversion repository. Due to some network issues
> this can take several minutes. Is there a way I can lock the
> repository/stop commits from happening while the source is in
> the process of getting checked out?
>
>

Why would you want to do this? Unless the checkout fails in the middle, it will always check out the revision you specified or the head revision at the time the checkout started. Further commits should not interfere and the resulting working copy should always be in a consistent state. So if you're concerned about commits messing with the WC being checked out, things should be fine.
If you're trying to accomlish something else, you'd have to place a lock file somewhere a pre-start-commit hook could see it and reject commits based on the lock file.

>
> Regards,
>
>
>
> Adam.

regards

fg

-- 
Felix Gilcher
Head of IT Development
Exozet Berlin GmbH
Rotherstraße 20
10245 Berlin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 1 16:15:32 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.