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

AW: Re: Shadow/Mirror hook script

From: Felix Gilcher <gilcher_at_exozet.com>
Date: 2005-06-02 09:01:14 CEST

> -----Ursprüngliche Nachricht-----
> Von: allan juul [mailto:allan@muly.dk]
> Gesendet: Donnerstag, 2. Juni 2005 00:48
> An: Nathaniel Case
> Cc: users@subversion.tigris.org
> Betreff: Re: Shadow/Mirror hook script
>
> Nathaniel Case wrote:
>
> > I noticed that a few people have asked about a feature that would
> > automatically mirror the latest version of a repository to
> a 'shadow' copy.
> >
> > I also needed this, so I wrote a post-commit hook script to do it
> > (attached). It works by using svnlook to determine what
> has changed,
> > and then implements those changes (modify, add, delete) to
> the target
> > shadow directory.
> >
[snip]
> > - Nate Case <ncase@xes-inc.com>
> >
>
> looks neat !
> havent tried yet -so just out of curiousity, what happens if multiple
> people commit multiple files simultaneously ?
>

As each commit is an atomic action, this cannot happen. There is no case in wich two users could possibly commit the same file at the same time - one commit will be rejected. So there *should* be no conflicts.
However, I'm not shure what happens if a large commit modifies file a and while the post-commit-script still exports the files (and has not yet reached file a), another commit modifies the same file. This should be a pretty rare case, but is there enough time for a race condition?

> ./allan
>

regards
fg

--
Felix Gilcher
it developer
Exozet Berlin GmbH
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 2 09:03:51 2005

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.