[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Question] Svn log show code diff

From: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Mon, 20 Dec 2010 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.

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.
Received on 2010-12-20 15:02:24 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.