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

Re: Q: Command to get a file from a particular revision

From: Felix Gilcher <felix.gilcher_at_bitextender.com>
Date: Thu, 18 Feb 2010 14:33:10 +0100

Hi,

as the error message says, you cannot check out a single file. The smallest unit that can be checked out is a directory. You can either check out the parent directory (possibly using sparse checkouts to limit what items you pull) or use svn cat -r <rev> <url/to/file>. However, svn cat will not create a working copy so you can't check in your changes.

felix

On Feb 18, 2010, at 2:21 PM, Manickavel, Senthil wrote:

> Hi,
> What’s the command to get a file from a particular revision? I tried with “svn checkout”. It takes only the directory URL.
>
> D:\>svn checkout -r 27240https://Build.net/RAD/rad.profile.install .
> svn: URL 'https://Build.net/RAD/rad.profile.install' refers to a file, not a directory
>
> With Regards,
> Senthil Kumar M
>
>
> The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

--
Felix Gilcher
Bitextender GmbH
Paul-Heyse-Str. 6
D-80336 München
Amtsgericht München, HRB 174280
Geschäftsführer: David Zülke, Florian Clever
Received on 2010-02-18 14:33:50 CET

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.