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

Re: Find the changed line numbers in a file

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 20 Oct 2011 12:31:33 +0200

On Thu, Oct 20, 2011 at 03:24:55AM -0700, subhash_m wrote:
>
> Hi Mark,
> I want to do this from a script. Basically script should find out numbers of
> the lines changed in the file.

Install diffstat, and run 'svn diff -cN | diffstat'.

Example:
$ svn diff -c1186167 https://svn.apache.org/repos/asf | diffstat
 1.7.x/STATUS | 11 ----
 1.7.x/subversion/libsvn_client/mergeinfo.c | 51 ++++++++++++++++++--
 1.7.x/subversion/tests/cmdline/mergeinfo_tests.py | 56 ++++++++++++++++++++++
 3 files changed, 103 insertions(+), 15 deletions(-)
Received on 2011-10-20 12:32:10 CEST

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.