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

Re: Is this correct behavior for svn cat?

From: Raman Gupta <rocketraman_at_fastmail.fm>
Date: 2005-09-06 07:42:21 CEST

Tom Mornini wrote:
> I'm trying to extract an old file in a previous revision.
>> tmornini$ svn --version
>> svn, version 1.2.3 (r15833)
>> compiled Aug 23 2005, 21:11:48
>> tmornini$ svn ls -r54 svn+ssh://host.name.replaced/video/trunk/docs
>> video.dez
>> video.pdf
>> tmornini$ svn cat -r54 svn+ssh://host.name.replaced/video/trunk/
>> docs/video.pdf > ~/Desktop/video.pdf
>> svn: File not found: revision 510, path '/trunk/docs/video.pdf'
> That is *frustrating*.

Since you are looking at a repository URL, try the svn cat URL@REV form:

svn cat svn+ssh://.../docs/video.pdf_at_54

The svn cat -r form is better to use when you want to cat a specific
revision of a file in your working copy e.g.

svn cat -r54 wc/docs/video.pdf

In the above form, svn cat will also follow rename history, AFAIK.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 6 07:43:55 2005

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.