1

Is there a way to check out a single file from a different SVN directory to single target directory?

For example, in the SVN repository

svn://ddev/EDW/trunk/src/etlDataStream/ASGC
files: File1.dtsx
       File2.dtsx

svn://ddev/EDW/trunk/src/etlDataStream/HIRD
files: File5.dtsx
       File6.dtsx

I want this to be pushed to single directory of target systems as

c:\etlDataStream
files: File1.dtsx
       File2.dtsx
       File5.dtsx
       File6.dtsx

How can this be acheived?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Sreedhar
  • 29,307
  • 34
  • 118
  • 188
  • Short answer - You cannot check out a single file in svn. Also, check out http://stackoverflow.com/questions/122107/checkout-one-file-from-subversion for some possible workarounds – Jagmag Oct 18 '10 at 01:46

1 Answers1

1

You can actually do this with the latest version of Subversion. SVN supports svn:external for a single file from version 1.6. However, it has its own incompatibilities (it still has open bugs).

http://subversion.apache.org/docs/release-notes/1.6.html#externals

Check Externals Definitions for the implementation.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Version Control Buddy
  • 1,416
  • 10
  • 14
  • Yep, entirely possible on a file by file basis. Not entirely convinced it's a good idea tho. – Jim T Oct 18 '10 at 13:13