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

[PATCH] enhance diff to make it behave uniformly

From: Prabhu Gnana Sundar <prabhugs_at_collab.net>
Date: Tue, 30 Nov 2010 15:26:34 +0530

Hi,

In my previous patch [1] I suggested the addition of the
'--diff-copy-from' switch to 'svn diff' to solve the cases where 'svn
diff' would do the diff against the copyfrom source file when a file is
reinstated or diff target is *not* explicit file.

But since there is already a point that diff behaves differently in
different scenarios, making 'svn diff' work the same in all scenarios is
one good option. This patch would solve the problem of making 'svn diff'
work the same in all conditions by passing 'TRUE' for the
'diff_copy_from' option by default. Hence I removed the
'--diff-copy-from' switch in this patch. This is a more generic way to
bridge the gap.

I am attaching the patch and the log with this mail. Please review and
comment on the same.

I still retain this param on svn_client_diff5 and svn_ra_diff4 in case
somebody wants old behaviour, otherwise I can remove that too.

Regards
Prabhu

[1]http://mail-archives.apache.org/mod_mbox/subversion-dev/201011.mbox/%
3C1291018400.4021.3.camel_at_prabhugnanasundar%3E

Received on 2010-11-30 11:01:57 CET

This is an archived mail posted to the Subversion Dev mailing list.