[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: Allen Fowler <allen.fowler_at_yahoo.com>
Date: Sun, 17 May 2009 12:03:03 -0700 (PDT)

Right now, I'm using rsync on an exported tree, but I am looking for something a little more compatible.

Am i the only one using SVN for web site / web app development?

________________________________
From: Frank Gruman <fgatwork_at_verizon.net>
To: Allen Fowler <allen.fowler_at_yahoo.com>
Cc: Gavin Baumanis <gavinb_at_thespidernet.com>; users_at_subversion.tigris.org
Sent: Monday, May 11, 2009 12:44:38 AM
Subject: Re: How to push updates to a development server?

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.)

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=2293580

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