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

Re: Restricting svn log --diff output to single file

From: Stephen Butler <sbutler_at_elego.de>
Date: Fri, 20 Jan 2012 16:36:25 +0100

On Jan 20, 2012, at 16:27 , sebb wrote:

> 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
>
[...]
>
> $ svn log -l2 http://svn.apache.org/repos/asf/subversion/branches/1.0.x/@848689
> --diff

Have you tried the full path to the file? The following works for me:

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

Regards,
Steve
Received on 2012-01-20 16:37:09 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.