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

Re: svn import of file when file exists in repository

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Wed, 5 Nov 2008 13:28:09 +0100

On Wednesday 05 November 2008, Andy Stocks wrote:
> I have as part of a build process a requirement to check the results of
> a build (jars, wars etc) into a staging repository (i.e. not the same
> repository as the source code) - our deployment tool will then pull a
> particular revision of these files from the staging repository to deploy
> to test and live networks.
>
> As the result of the build is not under svn control as far as the source
> repository is concerned, I'd ideally like to do an "svn import" of the
> result into a predefined location in the staging repository, along with
> various bits of build related meta-data in the comment.

Two things come to mind:
1. Drop SVN altogether for the staging area and just use rsync to update the
target site. You could write the metadata to a file inside the directory
before uploading it to the staging area.
2. SVN includes a program called svn_load_dirs which does pretty much what you
describe, it syncs the state of a dir in the repository with one on disk,
including adding new files, deleting vanished ones and updating the changed
ones.

cheers

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-05 13:28:42 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.