开发者

Checkout a specific older version of the source code through Subversion?

My project is currently at release (that is, r1000), and that is what is checked out to my local repository.

I would like to checkout a much older version to my repository, for purposes of performance comparison (for example, r500).

I have taken my tests and gotten results with r1000.

What svn commands do I need to开发者_运维问答 use to get r500 into my local repository to run the same tests as on r1000?


You can update to a given revision using the r-parameter (or --revision)

svn update -r500


You can specifically checkout an older version of the repository by using:

svn checkout URL@revision

which, in your case, it would be:

svn checkout URL@500


The accepted answer did not work for me. The solution is:

svn up -r REVISION_NUMBER


You can easily get the revision using:

svn co -r revisionno svn://URL Foldername

For example,

svn co -r 1041 svn://192.168.x.x/ProjectName Revision1041


We can do it using the following commands.

  1. Get the old versions using the svn log command:

    manjeet-laptop:trunk manjeet$ svn log
    
    ------------------------------------------------------------------------
    r1747 | pramod | 2014-01-10 15:01:17 +0530 (Fri, 10 Jan 2014) | 1 line
    

    Update new MSISDN series

    ------------------------------------------------------------------------
    r1742 | pramod | 2014-01-10 12:05:44 +0530 (Fri, 10 Jan 2014) | 1 line
    
  2. Update the revision (say we want to get r1747)

    svn update -r1747
    
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜