List of files changed since a certain date using SVN
Asked Answered
H

3

53

What kind of SVN command can I run that will get me a list of files changed since a certain date?

Right now I have it as

svn log <url> -r {2010-11-01}:{2011-05-04} > log.txt

That almost work, but it only shows the revisions and comments but not the files list.

Hepplewhite answered 5/5, 2011 at 0:7 Comment(1)
if you use -v you will get a list of files embedded in each commit log entry. if youre just trying to assemble a cumulative list though this probably isnt what you wantAmandaamandi
M
81

Add the --verbose (or -v) flag and you'll get a list of all affected paths as well as the log messages. If you want to get rid of the messages, add the --quiet (or -q) flag. So:

svn log <url> -qv -r {2010-11-01}:{2011-05-04} > log.txt
Mechanist answered 5/5, 2011 at 0:14 Comment(1)
svn log <url> -qv -r \{2010-11-01\}:\{2011-05-04\} > log.txtEzequieleziechiele
A
42

If you just want each changed file printed once (rather than for each revision in which it was changed), you could also do:

svn diff <url> --summarize -r {2010-11-01}:{2011-05-04} > log.txt
Angry answered 5/5, 2011 at 0:17 Comment(2)
Sadly, this doesn't show files that experienced a reversion in that time frame.Disconcerted
Do you mean files on which svn revert was used? If so, no method through the VCS will help you, since, by definition, a revert ensures that no changes are recorded.Squalene
N
5

With --verbose, svn log will also print all affected paths with each log message.

http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.log.html

Nabors answered 5/5, 2011 at 0:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.