tags:

views:

21

answers:

3

Hello, how can I download single file from SVN repository?

For example:

svn co http://server.com/svn/trunk/test.file test.file
svn: URL 'http://server.com/svn/trunk/test.file test.file' refers to a file, not a directory

But I can download directories in this way.

A: 
svn export <URL> <PATH>

Path is optional

svn export

And for uploading a single file
svn import

phsr
A: 
svn checkout <url_of_big_dir> <target> --depth empty
cd <target>
svn up <file_you_want>
mcandre
A: 

I don't think you can check out a single file.

If you just want the file and don't care about svn, you can use wget:

wget http://server.com/svn/trunk/test.file`

If you already checked out the trunk directory, and you are in your local copy, you can update a single file:

svn up test.file
no