subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Sperling <s...@elego.de>
Subject Re: how to contribute feature of unknown popularity
Date Thu, 15 Jul 2010 10:34:12 GMT
On Wed, Jul 14, 2010 at 10:03:53PM +0000, svnusertemp@href.com wrote:
> Re: export --skipfilesmatchingsize
> Prior thread link: <http://svn.haxx.se/users/archive-2010-06/0040.shtml>http://svn.haxx.se/users/archive-2010-06/0040.shtml
> 
> 
> Hi, I am the person who wanted this feature and worked on testing it
> over recent months.  It has been working well for some time, and I
> use it often.  I use it because I build a lot of deployment servers
> where, on a daily or weekly basis, much (often more than 90%) of a
> system stays as-is and a small amount needs to be brought in from
> subversion.  I use export (as opposed to update) to avoid having
> .svn files scattered throughout production machines.  The main
> reason I like the skip feature is that it lets me deal with DLLs and
> other files that are (a) unchanging and (b) in use at the time of
> export.  The normal export feature aborts when it encounters a
> pre-existing file that cannot be overwritten because it is in use;
> with the skip option, I can still export that branch of the
> repository and pick up any new/additional/changed files.
> Originally, I thought the skip feature would be a good way to save
> bandwidth and time.  In the end, that was not as critical for me as
> being able to skip over in-use, unchanged DLLs.

Hi Ann,

Why don't you use rsync, which was designed to solve exactly this problem?
rsync avoids unnecessary transfers of file data over the network,
by transmitting only the changes necessary to sync two data sets.

You could do a local export on the machine where the Subversion repository
is located, and then use rsync to sync the exported result to your
deployment servers.

You can run rsync on windows using cygwin, or you can use one of the
Windows ports (google mentions DeltaCopy and cwrsync on the first page,
there are probably more). rsync is free software, licensed under the GPL.
See http://en.wikipedia.org/wiki/Rsync for more details.

If you require encryption, rsync traffic can be encrypted using SSH or
stunnel (see stunnel.org). If your server runs Linux, SSH is probably
the easier solution. With a Windows server, stunnel might be the better
option since running an SSH server on Windows requires cygwin.

As I've said before, I object to a feature that is not general enough
to be useful to a lot of our users. What if the next person wants svn
export to skip files containing java code, for instance? By your logic,
we'd then add another option called --skip-files-containing-java-code.
Proliferation of option flags like this is a wrong approach in my opinion.

I think that using a high-quality sync tool such as rsync is definitely
a better solution to the problem you're trying to solve.

Thanks,
Stefan

Mime
View raw message