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

Re: usage question: checkout single file in repository?

From: Nuutti Kotivuori <naked_at_iki.fi>
Date: 2004-03-25 23:05:14 CET

Viktor Rosenfeld wrote:
> IIRC, under cvs I could checkout a single file from a repository, a
> la
>
> cvs co module/path/to/file
>
> If I try that under svn, like
>
> svn co svn+ssh://localhost/path/to/repo/path/to/file
>
> I get a directory named file with no usable data in it.
>
> I looked at the man page, the faq and the book, but couldn't find
> anything. Is this at all possible?

svn cat svn+ssh://localhost/path/to/repo/path/to/file > file

"svn co" creates working copies. "svn cat" can be used to retrieve
invidual files. The directory creation is a bug, that is either
getting fixed or is already fixed in trunk.

-- Naked

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 25 23:05:43 2004

This is an archived mail posted to the Subversion Users mailing list.