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

svn diff --summarize question

From: Dan Ellis <danellis10_at_gmail.com>
Date: Mon, 12 May 2014 14:36:48 -0700

Hi,

I'm trying to diff the contents between of a local working copy file to a
file in the repository (I really just need a yes/no answer). This file
happens to be identical in content, but they do not share the same ancestry
(unrelated nodes).

When I do a diff with no --summarize option, I get what I expect, namely no
output:

c:\Project_files\sandbox>svn diff --ignore-properties
--old="c:\project_files\sandbox_v2\AAAA.txt" --new="
http://svr/repo/foo.txt@3813"
c:\Project_files\sandbox>

When I add the --summarize argument to the command line, I get the
following:
c:\Project_files\sandbox>svn diff --ignore-properties
--old="c:\project_files\sandbox\AAAA.txt" --new="
http://svr/repo/AAAA.txt@3813" --summarize
D C:\project_files\sandbox\AAAA.txt
A C:\project_files\sandbox\AAAA.txt

From reading http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.diff.html, it
looks like the behavior I'm seeing is similar to the --notice-ancestry flag:

"By default, svn diff ignores the ancestry of files and merely compares the
contents of the two files being compared. If you use --notice-ancestry, the
ancestry of the paths in question will be taken into consideration when
comparing revisions (i.e., if you run svn diff on two files with identical
contents but different ancestry, you will see the entire contents of the
file as having been removed and added again)."

How can I get the --summarize behavior to only look at file contents? I
fee like I might be missing something obvious.

Thanks!
Dan
Received on 2014-05-12 23:43:59 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.