You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Manickavel, Senthil" <se...@philips.com> on 2010/02/18 13:21:36 UTC

Q: Command to get a file from a particular revision

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 27240 https://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.

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

Posted by Felix Gilcher <fe...@bitextender.com>.
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