subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Ellis <>
Subject svn diff --summarize question
Date Mon, 12 May 2014 21:36:48 GMT

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

c:\Project_files\sandbox>svn diff --ignore-properties
--old="c:\project_files\sandbox_v2\AAAA.txt" --new="

When I add the --summarize argument to the command line, I get the
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, 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.


View raw message