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

Re: Updating the working copy for a continuous build process

From: Adrian Howard <adrianh_at_quietstars.com>
Date: 2006-08-08 19:06:44 CEST

On 8 Aug 2006, at 17:03, Chris Lambrou wrote:
[snip]
> (1) delete any local files not subject to version control (erases any
> intermediate and output files generated by the previous build)
> (2) svn revert - Revert any modified files to the local repository
> version (ensures the subsequent update won't result in any conflicts)
> (3) svn update - Obtain any modifications since the last time the
> build
> script ran
>
> Steps (2) and (3) shouldn't be a problem to implement, but can anyone
> please suggest how I might implement step (1)?

Maybe combine with rsync? You should be able to do something like
(untested):

svn up ci-working-copy;
rsync -a --delete --exclude '.svn' --delete-excluded ci-working-copy
ci-build-copy
<do build in ci-build-copy>

Since you never build in ci-working-copy you should never have to
worry about reverting, and the rsync will handle the removal of build
stuff, reverting changed files, etc.

?

Adrian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 8 19:08:15 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.