svn checkout between two revisions on the same branch

1.6k Views Asked by At

Is there a way or method to do an export of between two revisions to a physical directory?

In this way, the result expected is to have only files, changed between the specified revisions.

2

There are 2 best solutions below

6
alroc On BEST ANSWER

You can only check out individual revisions. What you are probably looking to do is export only the files changed between 2 revisions. Pseudocode:

svn diff --summarize -rSTART:END
for each item
   svn export URL_TO_ITEM LOCAL_PATH
2
Geddon On

BTW: These are the steps I took to accomplish this:

  1. svn diff --summarize -r START:END Branch_URL > c:\diff.txt
  2. Alter diff.txt via a script to get only the Modified and Added files, and change the slashes for windows paths.
  3. Perform an svn checkout for each $line in the $file

Although there is not direct way to do this in svn (which I think it should have), this is a suggested work around.

Thanks.