I am using SVN for a project. with svn log -l 10
, I can get the last 10 commits to this folder, with the revision id, log message, etc.. Is there any SVN command that lets me print out on the command line all the diffs for each of those changesets? I'd like to do some grepping/etc. with the last X diffs?
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.
By default going to be in /var/log/httpd .
In SVN v1.7, there are the
--diff : produce diff output
--diff-cmd ARG : use ARG as diff command
options that you can use with svn log
For older version (which is probably your case), you will have to do some scripting to supply revision to svn diff
and get the output
For older svn, you can use function:
svn-log-diff()
{
for c in `svn log "$@" | grep '^r' | cut -f1 -d ' ' | sed s/r/-c/`; do
svn diff --force $c || break
done
}
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