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

Re: FTPing changes

From: <shawn.tinsley_at_sunlife.com>
Date: 2005-07-26 18:12:57 CEST

Hi,
     One approach is to use the net::ftp library in Perl. You could
programmatically control the transfers/keep hosts in sync via ftp access.
This would allow the flexibility to choose specific
machines/directories/files to be updated/replicated. (Caveat: you'd need
those Perl modules to be installed/available.) In regards to your last
paragraph, you could use a subroutine which utilizes svnlook, svnmerge,
etc. take the data and put it in a hash map; then setup your ftp to
recursively take those diffs, checks to see if it is a file (with revision
number x) and if so sends it.
Cheers,
ST.

ps. Example of using svn commands in perl program:

$update = "/usr/local/bin/svn update --revision $revision";
        open (UPDATE, "$update |" );

                                                                                                                                       
                                                                                                                                       
             "José Moreira" To: "Hayden Andrews" <hayden@heydan.co.uk>
             <jose.moreira@wemake.pt> cc: users@subversion.tigris.org
             07/26/2005 11:40 AM Subject: Re: FTPing changes
                                                                                                                                       
                                                                                                                                       

Hi, why dont you try to 'mount' the ftp site [using Novel Netdrive on
Windows (c) or some kernel module on linux] as a directory and check-out
the revision into it. I'm not use about it because of file-lock
requirements and so but if it works, Subversion will do the dirty work
for you.

cheers,

Hayden Andrews wrote:
> Greetings everyone,
>
> Looking through the history of this mailing list, I can see that my
> issue has been touched on, but not resolved. Does anyone have any fresh
> ideas ...... ?
>
> As I am currently located in an area with only very slow dial up
> connections (25%-50% lost packets), and working on a number of large web
> projects, I would love to easily be able to FTP just the changes between
> two revisions.
>
> In previous posts, people have said to use rsync - great idea, but not
> if you only have FTP access ;)
>
> I have played with a few ideas, but to know avail.... Currently, I
> export the projects, and manually choose which files and directories I
> want to FTP, and hope to remember the files/dirs that I need to delete.
>
> I thought it would be great to be able to export the files/dirs that
> have changed between two revisions, but that would not notify of
> deletions. Then I thought, 'svn merge' knows all that I need to know,
> and played with that idea. But to just get a reliable list of changes, I
> would need for svn merge to be able to only do a compare between two
> revisions (svn merge compares between two revisions, and then displays
> results comparing the previous results to a working copy). This would be
> fine if I had a GUARANTEED EXACT local copy of the site, but I can not.
>
> It seems annoying that the information on which files/dirs have
> changed/deleted between two revisions is right there, but
> inaccessible :(
> Any ideas?
>
> Thanks,
>
>
> Hayden
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 26 18:20:04 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.