How to checkout a specific Subversion revision from the command line?

后端 未结 10 556
日久生厌
日久生厌 2020-11-28 00:54

I want to checkout a specific revision of a folder in Subversion using the command line.

I don\'t see an option for specifying the revision number in TortoiseP

相关标签:
10条回答
  • 2020-11-28 01:32

    Either

    svn checkout url://repository/path@1234
    

    or

    svn checkout -r 1234 url://repository/path
    
    0 讨论(0)
  • 2020-11-28 01:32

    You could try

    TortoiseProc.exe /command:checkout /rev:1234
    

    to get revision 1234.

    I'm not 100% sure the /rev option is compatible with checkout, but I got the idea from some TortoiseProc documentation.

    0 讨论(0)
  • 2020-11-28 01:35

    It seems that you can use the repository browser. Click the revision button at top-right and change it to the revision you want. Then right-click your file in the browser and use 'Copy to working copy...' but change the filename it will check out, to avoid a clash.

    0 讨论(0)
  • 2020-11-28 01:35

    Go to folder and use the command:

    svn co {url}
    
    0 讨论(0)
提交回复
热议问题