How would I retrieve all files from the repository, along with the folder structure, changed in a range of revisions, say from 1000-1920?
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.
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.
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.
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.
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/
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With