Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of files changed since a certain date using SVN

Tags:

svn

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.

like image 836
teepusink Avatar asked May 05 '11 00:05

teepusink


People also ask

How do you find changed files in svn?

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. svn log also takes a --quiet ( -q ) option, which suppresses the body of the log message. When combined with --verbose ( -v ), it gives just the names of the changed files.

How do I find my svn file 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 one can see all the changes in the working copy since the last update commit?

You can simply click on one revision, then ctrl-click on the other revision (so the two are selected), then rt-click on either one, do "Compare revisions". This WILL show all changes between those two revisions, including changes made in any intervening revision.

How do I find previous versions in 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.


3 Answers

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 
like image 65
Mark Gardner Avatar answered Oct 25 '22 06:10

Mark Gardner


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 
like image 24
Michael C. O'Connor Avatar answered Oct 25 '22 06:10

Michael C. O'Connor


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

like image 31
manojlds Avatar answered Oct 25 '22 05:10

manojlds