Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion: Check out only those files affected during a specific commit

In Subversion, is it possible to check out only those files affected during a specific commit, provided you know the specific revision number?

like image 783
Adam Paynter Avatar asked Jun 09 '09 16:06

Adam Paynter


People also ask

How do I checkout a specific file in svn?

svn” or “_svn” should now be present). Within the repository now, right click the single file that you wish to have checked out alone and select the “Update Item to revision” option. The single file can now be worked on and checked back into the repository.

What does checkout do in svn?

svn checkout checks out (retrieves) a working copy of the repository into the specified folder. If you don't have access to the repository, and there's not already a current copy of the source in the folder, you can't possibly do a build. If there is a current copy of the source there, it should include build.


1 Answers

I think that a Subversion check out can only check out a specific folder and not individual files. That said, the command:

svn log -r *revision* -q -v

will list the changes associated with the specified revision so you could process the output of this command to help copy the desired files to somewhere after checking out a working folder for the full directory.

like image 75
mikej Avatar answered Sep 19 '22 15:09

mikej