<p>I have somewhat interesting development situation. The client and deployment server are inside a firewall without access to the Subversion server. But the developers are outside the firewall and are able to use the Subversion server. Right now the solution I have worked out is to update my local copy of the code and then pull out the most recently updated files using UnleashIT. </p>

<p>The question is how to get just the updated files out of Subversion so that they can be physically transported through the firewall and put on the deployment server.</p>

<p>I'm not worried about trying to change the firewall setup or trying to figure out an easier way to get to the Subversion server from inside the firewall. I'm just interested in a way to get a partial export from the repository of the most recently changed files.</p>

<p>Are there any other suggestions?</p>

<p>Answer found: In addition to the answer I marked as Answer, I've also found the following here to be able to do this from TortoiseSVN:</p>

<p>from <a href="http://svn.haxx.se/tsvn/archive-2006-08/0051.shtml" rel="nofollow noreferrer">http://svn.haxx.se/tsvn/archive-2006-08/0051.shtml</a></p>

<pre><code>* select the two revisions
* right-click, "compare revisions"
* select all files in the list
* right-click, choose "export to..." 
</code></pre>

[{'answer_id': 42295, 'author': 'Brian Lyttle', 'author_id': 636, 'author_profile': 'https://Stackoverflow.com/users/636', 'pm_score': -1, 'selected': False, 'text': "<p>You don't provide information on what is allowed through the firewall. I'm not familiar with UnleashIT.</p>\n\n<p>I guess you could have a script that exports from SVN to a folder on the SVN server. The script then zips the exported files. You can then transport the ZIP file however you want and extract to the deployment server. </p>\n\n<p>TortoiseSVN supports proxy servers so you could use one of those from the client's side?</p>\n"}, {'answer_id': 42300, 'author': 'Craig', 'author_id': 2047, 'author_profile': 'https://Stackoverflow.com/users/2047', 'pm_score': 0, 'selected': False, 'text': '<p>You could try playing around with the <a href="http://svnbook.red-bean.com/en/1.1/re31.html" rel="nofollow noreferrer">svnadmin dump</a> command that ships with the Subversion binaries. You can use this command to dump the whole repository to a file, just certain revision, or a range of revisions. Then use <a href="http://svnbook.red-bean.com/en/1.0/re36.html" rel="nofollow noreferrer">svnadmin load</a> to load the <em>dump-file</em> into a new, clean repository.</p>\n\n<p>Not a perfect solution since it works in terms of the repository and not individual files.</p>\n'}, {'answer_id': 42503, 'author': 'Dylan Bennett', 'author_id': 551, 'author_profile': 'https://Stackoverflow.com/users/551', 'pm_score': 1, 'selected': False, 'text': "<p>So if I understand correctly...</p>\n\n<p>Let's say you have a repository that looks like this:</p>\n\n<pre><code>/\n|+-DIR1\n|   |- FILEa\n|   |- FILEb\n|+-DIR2\n|   |- FILEc\n|   |- FILEd\n|- FILEe\n|- FILEf\n</code></pre>\n\n<p>And let's say you update files <code>FILEa</code>, <code>FILEc</code>, and <code>FILEf</code> and commit them back into the repository. Then what you want to export out of the repository is a structure that looks like this:</p>\n\n<pre><code>/\n|+-DIR1\n|   |- FILEa\n|+-DIR2\n|   |- FILEc\n|- FILEf\n</code></pre>\n\n<p>Is that right?</p>\n"}, {'answer_id': 42507, 'author': 'Mark Biek', 'author_id': 305, 'author_profile': 'https://Stackoverflow.com/users/305', 'pm_score': 0, 'selected': False, 'text': '<p>You just want the people who are behind the firewall to be able to access the latest files committed to Subversion, right?</p>\n\n<p>Could you write an <a href="http://svnbook.red-bean.com/en/1.4/svn.reposadmin.create.html#svn.reposadmin.create.hooks" rel="nofollow noreferrer">svn hook script</a> that uses some method (maybe scp or ftp) to send the files over to the remote location at the time they\'re committed?</p>\n'}, {'answer_id': 43250, 'author': 'Jared', 'author_id': 3442, 'author_profile': 'https://Stackoverflow.com/users/3442', 'pm_score': 1, 'selected': False, 'text': "<p>The Subversion hooks looks like it has a lot of promise. But being relatively uninformed about how to script the hook, how would I pull out the files that were committed and FTP them somewhere maintaining the directory structure?</p>\n\n<p>If I could do that, then someone inside the firewall can pull the files down to the deployment server and we'd be good to go.</p>\n"}, {'answer_id': 45983, 'author': 'Commodore Jaeger', 'author_id': 4659, 'author_profile': 'https://Stackoverflow.com/users/4659', 'pm_score': 2, 'selected': True, 'text': '<p>I\'ve found <a href="http://samba.anu.edu.au/rsync/" rel="nofollow noreferrer">rsync</a> extremely useful for synchronizing directory trees across multiple systems. If you have shell access to your server from a development workstation, you can regularly check out code locally and run rsync, which will transfer only the files that have changed to the server.</p>\n\n<p>(This assumes a Unix-like environment on your development workstations. Cygwin will work fine.)</p>\n\n<pre><code>cd deploy\nsvn update\nrsync -a . server:webdir/\n</code></pre>\n\n<p>Your question sounds like you don\'t actually have any direct network access from your development workstations to your server, and what you\'re really looking for is a way to get Subversion to tell you which files have changed. <strong>svn export</strong> supports an argument to let you check out only the files that changed between particular revisions. From the svn help:</p>\n\n<pre><code>  -r [--revision] arg      : ARG (some commands also take ARG1:ARG2 range)\n                             A revision argument can be one of:\n                                NUMBER       revision number\n                                \'{\' DATE \'}\' revision at start of the date\n                                \'HEAD\'       latest in repository\n                                \'BASE\'       base rev of item\'s working copy\n                                \'COMMITTED\'  last commit at or before BASE\n                                \'PREV\'       revision just before COMMITTED\n</code></pre>\n\n<p>You\'ll need to keep track of what the latest revision you copied to the server. Assuming it\'s SVN revision xxxx:</p>\n\n<pre><code>svn export -r xxxx:HEAD http://svn/\n</code></pre>\n\n<p>Then simply copy the contents of the <em>deploy</em> directory to your server on top of the existing files.</p>\n\n<p>This won\'t handle deleted files, which may prove problematic in some environments.</p>\n'}, {'answer_id': 262104, 'author': 'bolk', 'author_id': 32764, 'author_profile': 'https://Stackoverflow.com/users/32764', 'pm_score': 2, 'selected': False, 'text': '<p><code>svn export</code> does not accept a revision range, try it out.</p>\n\n<p>A possible solution is to get the list of changed files with:</p>\n\n<pre><code>svn diff --summarize -rXXX http://svn/...\n</code></pre>\n\n<p>and then export each of them.</p>\n'}, {'answer_id': 2430366, 'author': 'Philip Gloyne', 'author_id': 141765, 'author_profile': 'https://Stackoverflow.com/users/141765', 'pm_score': 0, 'selected': False, 'text': '<p>If you tag the revisions this may help <a href="http://github.com/philipgloyne/svn-diff-export" rel="nofollow noreferrer">github svn-diff-export</a></p>\n'}]
['https://Stackoverflow.com/questions/42246', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3442/']