[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: Zhang, Wei-Jovi (NSN - CN/Hangzhou) <wei-jovi.zhang_at_nsn.com>
Date: Tue, 21 Dec 2010 09:47:44 +0800

Hi,
        Thanks very much for your answer. I get it.

.jovi

-----Original Message-----
From: ext Ryan Schmidt [mailto:subversion-2010d_at_ryandesign.com]
Sent: Monday, December 20, 2010 10:02 PM
To: Zhang, Wei-Jovi (NSN - CN/Hangzhou)
Cc: Subversion Users
Subject: Re: [Question] Svn log show code diff

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-21 02:49:30 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.