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

Re: How to push updates to a development server?

From: Frank Gruman <fgatwork_at_verizon.net>
Date: Mon, 11 May 2009 00:44:38 -0400

On Sun, 2009-05-10 at 19:45 -0700, Allen Fowler wrote:

> Yeah, "svn export"ing is probably an overkill.... that would export the entire project.
>
> Something more like rsync, but able to run over whatever transport is available. (ftp, scp, etc.)
>
>
>
>
> >
> > You can use "svn export" to get our code to a new destination without
> > the svn metadata.
> > And perhaps a post-commit hook (or even a CRON job to run "svn
> > export") could see it automated for you. - but that would then force
> > ALL commits to the dev server which may not necessarily be what you
> > want.
> >
> > Gavin.
> >
> >
> > On 11/05/2009, at 8:54 AM, Allen Fowler wrote:
> >
> > > Hello,
> > >
> > > I'm sure this is an issue may users have faced:
> > >
> > > If I'm developing a web application on my local machine, and I want
> > > to quickly test incremental changes on a development server
> > > (accessible via ssh/scp/ftp), what's best way to do this?
> > >
> > > Probably the solution would involve someway of just uploading the
> > > modified files, and ignoring things like temp files and the ".svn"
> > > folders....
> > >
> > > Any suggestions?
> > >
> > > Thank you,
> > > AF
> > >

I believe the svn export does not require you to pull the entire
project. It takes a URL and exports the contents at that URL to your
specified destination or to a folder of the same name you are exporting.

http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.export.html

A quick test:

        fgruman_at_toybox:~/test> cd mytest/
        fgruman_at_toybox:~/test/mytest> svn add folder1
        A folder1
        A folder1/folder2
        A folder1/folder2/folder3
        A folder1/folder2/folder3/folder4
        fgruman_at_toybox:~/test/mytest> svn ci -m "folder test"
        Adding folder1
        Adding folder1/folder2
        Adding folder1/folder2/folder3
        Adding folder1/folder2/folder3/folder4
        
        Committed revision 1.
        fgruman_at_toybox:~/test/mytest> cd ..
        fgruman_at_toybox:~/test> svn export
        file:///home/fgruman/mytest/folder1/folder2/folder3
        A folder3
        A folder3/folder4
        Exported revision 1.
        fgruman_at_toybox:~/test> ls
        folder3 mytest
        fgruman_at_toybox:~/test>

You can even specify a revision. Either way, you will get the contents
of whatever folder you specify.

As noted by a previous poster, you could employ something like "svn
list" with the revision created as part of a post-commit hook script
that could export only those directories with changed files. For that
matter, I believe svn export will export individual files (I believe as
of 1.5), so (if you were really, REALLY desperate) you could take the
output of the above list and export every file modified in a given
revision. The problem with this would be the extreme amount of time it
would take for large check in operations.

Regards,
Frank

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2183323

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-11 06:45:53 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.