Discussions  >  CollabNet Subversion Client  >  Re: Export a Particular Revision

Back to topic list

Re: Export a Particular Revision

Author markphip (OCN Member)
Full name Mark Phippard
Date 2012-02-06 12:50:31 PST
Message On Feb 6, 2012, at 3:47 PM, sandeep akula wrote:

> I want to export a Particular file's Version from a Directory/Repository. How can we do that?
>
> For ex:
>
> I have a directory svn://ssne555454:300​1/fs01/repos/ORACLE/​trunk/control_files
>
> Suppose control_files directory has 3 files by name:
>
> 1. test1.txt --> This file has 1 Revision
> 2. test2.txt --> This File has 2 revisions (Rev1 and Rev2)
> 3. test3.txt --> This file has 3 revisions (rev 1,2,3)
>
> Suppose I want to export revision 1 of test3.txt, how can i do that?
>
> If I use
>
> svn export svn://ssne555454:300​1/fs01/repos/ORACLE/​trunk/control_files/​test3.txt
>
> it exports the latest revision
>
> I tried using svn export -r 3 svn://ssne555454:300​1/fs01/repos/ORACLE/​trunk/control_files/​test3.txt but it did not work.


Why did you specify -r 3 as opposed to -r 1?

Also note that you can also use the svn cat command but you would need to redirect its output to a file if that is where you want it.


Mark

« Previous message in topic | 2 of 10 | Next message in topic »

Messages

Show all messages in topic

Export a Particular Revision sakula (OCN Member) sandeep akula 2012-02-06 12:47:32 PST
     Re: Export a Particular Revision markphip (OCN Member) Mark Phippard 2012-02-06 12:50:31 PST
         RE: Re: Export a Particular Revision sakula (OCN Member) sandeep akula 2012-02-06 13:00:54 PST
             Re: Export a Particular Revision markphip (OCN Member) Mark Phippard 2012-02-06 13:04:41 PST
     Re: Export a Particular Revision cmpilato (OCN Member) C. Michael Pilato 2012-02-06 12:52:03 PST
     Re: Export a Particular Revision cmpilato (OCN Member) C. Michael Pilato 2012-02-06 12:52:10 PST
     Re: Export a Particular Revision markphip (OCN Member) Mark Phippard 2012-02-06 13:06:26 PST
         RE: Re: Export a Particular Revision sakula (OCN Member) sandeep akula 2012-02-06 13:16:42 PST
             Re: Export a Particular Revision markphip (OCN Member) Mark Phippard 2012-02-06 13:18:09 PST
             RE: Re: Export a Particular Revision sakula (OCN Member) sandeep akula 2012-02-06 13:18:57 PST
Messages per page: