Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

macos

svn

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?

like image 497
Sosullivan Avatar asked Jul 05 '11 22:07

Sosullivan


People also ask

How do I checkout a specific version of svn?

If you want to write a script which requires no input, you should use the official Subversion command line client instead. checkout a working copy in REV revision: svn checkout --revision REV https://svn.example.com/svn/MyRepo/trunk/ svn checkout https://svn.example.com/svn/MyRepo/trunk/@REV.

How do I revert to a specific revision in svn?

Right click on the selected revision(s), then select Context Menu → Revert changes from this revision. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context Menu → Revert to this revision. This will discard all changes after the selected revision.

What is checkout in Subversion?

Advertisements. Subversion provides the checkout command to check out a working copy from a repository. Below command will create a new directory in the current working directory with the name project_repo.


1 Answers

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

svn update -r500 
like image 171
cellcortex Avatar answered Oct 07 '22 23:10

cellcortex