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

Exporting a single file?

From: Rydinare <rydinare_at_yahoo.com>
Date: 2004-12-16 00:06:07 CET

Hi guys. I'm having another issue with subversion. In my post-commit script, I'm trying to keep an up to date shadow (aka: mirror) of all files in my repository. So, I was able to query the repository using $REPO and $REV from the script with the svnlook command. Here's my next problem, though... the idea was based on being able to duplicate the transactions that subversion did in my mirror. I had completed the code, ran it and came up with one tiny problem... Subversion doesn't support exporting a single file! Reading through some posts, it showed that a workaround could be achived by using 'svn cat' and redirecting to a file. However, this leads to a few other issues. I'll address them below.
 
With 'svn cat', does it have any issues cat'ing binary files? If so, it's useless for this purpose. I potentially lose file propreties that Subversion may have preserved. Any easy way of fixing the file properties (this is a minor issue)? 'svn cat' does not work on a directory... how woul dI work around this? Finally, and more importantly, does anyone know if there are plans for single file exporting support in future versions of Subversion? I see no reason why 'svn export' shouldn't be able to work on a single file, since it's requesting an unversioned copy of the file, which would imply that a directory structure is not needed.
 
Ideas, guys? I'll appreciate any thoughts, advice and assistance on the matter.

Thanks in advance.

                
---------------------------------
Do you Yahoo!?
 Send holiday email and support a worthy cause. Do good.
Received on Thu Dec 16 00:08:19 2004

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.