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

Re: svn diff --summarize vs. svn log

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Mon, 12 May 2008 15:56:44 -0400

Bob Kuo wrote:
> I am in the process of writing a script that will one-way sync from a
> repository to an FTP server. The idea is that multiple users would make
> changes on the repository, and when we wanted those changes on the server,
> we would run the script. We would get a list of changes made since the last
> revision that was uploaded and then set the ftp client to upload each one of
> those changes.

How are you tracking *when* the files are copied up to the FTP server
and who did the copying? How can you roll back an update to a previous
set of files?

I'm asking these leading questions because I think there is a better way
to handle this procedure. Rather than manually make a list of files
that have changed between 'A' and 'B', create a tag and let Subversion
calculate that difference for you. You could even use a post-commit
script which would initiate the file copy when it detected an
appropriately named tag being created. That way you always have a
permanent record of which files were copied and when.

I actually wrote SVN::Notify::Mirror[1] to handle this specific sort of
operation (though it was originally written for updating a dynamic
website). I don't have an FTP transport method at the moment (I only
wrote SSH and RSync), but it shouldn't be hard to write one if you don't
have the ability to use the other two.


1. http://search.cpan.org/search?query=SVN-Notify-Mirror

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-12 21:57:12 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.