[[[ Fix FAQ to demonstrate way to checkout a single file in Subversion Revision 1.5. Old FAQ simply stated this was not possible. Also changed pre-1.5 instructions to use "svn cat" command instead of "svn export". "svn cat" is for single file while "svn export" is for whole directories. * svn/trunk/www/faq.html ]]] @@ -1942,13 +1942,31 @@

How do I check out a single file?

-

Subversion does not support checkout of a single file, it only -supports checkout of directory structures.

+

Subversion does not officially support checkout of a single file, it +only supports checkout of directory structures. However, if you are +using Subversion 1.5, you can take advantage of sparse checkouts.

-

However, you can use 'svn export' to export a single file. This will -retrieve the file's contents, it just won't create a versioned working -copy.

+

Let's say you want to checkout file build.xml from the directory +http://svn/repos/foo/trunk in your Subversion repository:

+ + +

If you are using an earlier version of Subversion, you can use svn cat +to export a single file. This will retrieve the file's contents, it just won't +create a versioned working copy.

+