Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve files changed in range of revisions in Subversion?

Tags:

How would I retrieve all files from the repository, along with the folder structure, changed in a range of revisions, say from 1000-1920?

like image 815
user47437 Avatar asked Jan 09 '09 11:01

user47437


People also ask

How do you find changed files in svn?

svn log then defaults to fetching the history of the directory at its current revision, and thus you don't see the newly committed changes. The solution here is to either update your working copy or explicitly provide a revision number to svn log by using the --revision ( -r ) option.

How do I find my svn revision history?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.

How can I get previous revision from svn?

On the file, simply right-click => Team => Switch to another branch/tag/revision. Besides the revision field, you click select, and you'll see all the versions of that file.

How do you find the difference between two svn revisions?

Display the differences between two paths. The ways you can use svn diff are: Use just svn diff'to display local modifications in a working copy. Display the changes made to TARGET s as they are seen in REV between two revisions.


2 Answers

If you just want the list of changed paths, have a look at the --summarize option on diff.

svn diff --summarize -r1000:1920 https://my.org/myrepo/
like image 52
bendin Avatar answered Sep 19 '22 14:09

bendin


That depends a little on what you intend to do with the data. If you're only interested in inspecting the data manually, you can do

svn log -r1000:1920 -q -v | grep "   M" | sort -u

to see all modified files, for example.

If you want to do something more programmatically, you can pass the --xml flag to svn log and get all the log data as XML output:

svn log -r1000:1920 --xml > log1000-1920.xml
like image 26
JesperE Avatar answered Sep 18 '22 14:09

JesperE