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

Re: hook to store committed binary files on remote storage

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Wed, 7 Sep 2011 18:00:17 +0200

On Wednesday 07 September 2011, Marco Strullato wrote:
> So.. I would like to configure subversion so that when a user commits

This sounds like a post-commit hook.

> a binary file,

What is a binary file? At least I don't have any analog files on my computer.
;) Seriously, you will have to define a bit more precisely what you mean by
that. This might involve checking the file for the svn:mime-type property, a
custom property, a certain extension or other criteria. In any case, you will
have to write a small program to make this decision; SVN only provides you a
few tools to achieve your goals.

> it would be automatically stored in a remote place
> (i.e. ftp). I believe it can be done by a hook but I found nothing.

Take a look at post-commit hooks. From there, you could e.g. update/checkout
an existing working copy and upload the changed files. Note that in some
cases, you could also just use a working copy on the remote machine and pull
the changes from there, triggered via SSH from the SVN server.

Cheers!

Uli

-- 
ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
FAQ: http://subversion.apache.org/faq.html
Docs: http://svnbook.red-bean.com/
**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
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. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2011-09-07 17:48:47 CEST

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.