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

Restricting svn log --diff output to single file

From: sebb <sebbaz_at_gmail.com>
Date: Fri, 20 Jan 2012 15:27:44 +0000

The command
    svn log filename
shows a list of revisions in which filename was changed.

I would expect
    svn log --diff filename
to only show the differences for that file.

However, it shows the differences for all files changed in each revision.
Is that really intentional?
If so, how can I restrict the differences to just a single file?

I am using:

svn, version 1.7.2 (r1207936)
   compiled Nov 29 2011, 22:11:2

Try the following examples:

$ svn log -l2 http://svn.apache.org/repos/asf/subversion/branches/1.0.x/@848689
-qv

r848689 | sussman | 2004-02-11 22:01:13 +0000 (Wed, 11 Feb 2004)
Changed paths:
   M /subversion/branches/1.0.x/STATUS
------------------------------------------------------------------------
r848664 | kfogel | 2004-02-09 22:51:34 +0000 (Mon, 09 Feb 2004)
Changed paths:
   M /subversion/branches/1.0.x/STATUS
   M /subversion/branches/1.0.x/packages/win32-innosetup/Pre.rtf
   M /subversion/branches/1.0.x/packages/win32-innosetup/Readme.txt
   M /subversion/branches/1.0.x/packages/win32-innosetup/W32notes.txt
   A /subversion/branches/1.0.x/packages/win32-innosetup/is_main.pas
(from /subversion/trunk/packages/win32-innosetup/is_main.pas:848450)
   D /subversion/branches/1.0.x/packages/win32-innosetup/isx_main.pas
   M /subversion/branches/1.0.x/packages/win32-innosetup/svn.iss
   M /subversion/branches/1.0.x/packages/win32-innosetup/templates/paths_inno_src.iss
   M /subversion/branches/1.0.x/packages/win32-innosetup/tools/mk_distro.pl
   M /subversion/branches/1.0.x/packages/win32-innosetup/tools/mk_htmlhelp.bat
   M /subversion/branches/1.0.x/packages/win32-innosetup/tools/svnpath/main.c
------------------------------------------------------------------------

$ svn log -l2 http://svn.apache.org/repos/asf/subversion/branches/1.0.x/@848689
--diff

Index: STATUS
===================================================================
--- STATUS (revision 848688)
+++ STATUS (revision 848689)
<snip/>
Index: STATUS
===================================================================
--- STATUS (revision 848663)
+++ STATUS (revision 848664)
<snip/>
Index: packages/win32-innosetup/isx_main.pas (deleted)
===================================================================
Index: packages/win32-innosetup/Pre.rtf
===================================================================
--- packages/win32-innosetup/Pre.rtf (revision 848663)
+++ packages/win32-innosetup/Pre.rtf (revision 848664)
<snip/>
Received on 2012-01-20 16:28:20 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.