macos 通过 Subversion 签出特定旧版本的源代码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6589512/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:08:25  来源:igfitidea点击:

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

svnmacos

提问by Sosullivan

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

我的项目目前正在发布(即 r1000),这就是我的本地存储库中检出的内容。

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

为了性能比较(例如 r500),我想将一个更旧的版本签出到我的存储库中。

I have taken my tests and gotten results with r1000.

我已经通过 r1000 进行了测试并获得了结果。

What svn commands do I need to use to get r500 into my local repository to run the same tests as on r1000?

我需要使用哪些 svn 命令将 r500 放入我的本地存储库以运行与在 r1000 上相同的测试?

回答by cellcortex

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

您可以使用 r 参数(或 --revision)更新到给定的修订版

svn update -r500

回答by ryanprayogo

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

回答by Shailendra Singh Rajawat

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

接受的答案对我不起作用。解决办法是:

svn up -r REVISION_NUMBER

回答by SamKan

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

回答by minhas23

We can do it using the following commands.

我们可以使用以下命令来完成。

  1. Get the old versions using the svn logcommand:

    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
    
  1. 使用以下svn log命令获取旧版本:

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

    更新新的MSISDN系列

    ------------------------------------------------------------------------
    r1742 | pramod | 2014-01-10 12:05:44 +0530 (Fri, 10 Jan 2014) | 1 line
    
  2. 更新修订版(假设我们要获得 r1747)

    svn update -r1747