Ryan Schmidt wrote on Mon, Dec 20, 2010 at 08:01:40 -0600:
> I'm removing dev@ from the Cc, since this is a question about how to use Subversion, and not a discussion about its development.
>
+1
>
> On Dec 19, 2010, at 21:17, Zhang, Wei-Jovi (NSN - CN/Hangzhou) wrote:
>
> > I have a question about svn log command, every time when I use svn log command, I'm very upset that I need to input svn diff to check changesets using revision number.
> >
> > Why not combine svn log and diff command together? Or is there have any script for this purpose? Like this:
>
> I'm sorry this upsets you, but in Subversion, log and diff are separate commands.
>
> It's common for a Subversion administrator to set up their repository in such a way that any commit automatically generates an email to a mailing list, by calling a mailing script in the post-commit hook. There are a number of existing scripts available to do this. Typically each commit email includes the log message and the diff. Mailing list software often includes a web archive feature. This method might be a different way to meet your goal.
>
> An additional alternative to consider would be for the post-commit hook to publish the log message and diff to an RSS feed.
>
> If that's not sufficient, and you need the flexibility of specifying any of the various arguments that "svn log" accepts for limiting the range of revisions, it should be possible for you to write a script to combine the log and diff output.
There is tools/client-side/showchange.pl in trunk.
svn 1.7 will have 'svn log --diff'.
Received on 2010-12-20 15:20:00 CET