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

Behavious of svnlook diff --diff-copy-from

From: Sven Köhler <sven.koehler_at_gmail.com>
Date: Sun, 20 May 2012 16:03:47 +0200


Consider the following output produced with svnlook WITHOUT using

Copied: trunk/test2.txt (from rev 6, trunk/test.txt)
--- trunk/test2.txt (rev 0)
+++ trunk/test2.txt 2012-05-20 13:20:40 UTC (rev 7)
@@ -0,0 +1 @@

Now test2.txt is identical to test.txt (I simply created it with svn cp
test.txt test2.txt and committed it). Now the behaviour of svnlook is,
that when I add --diff-copy-from to the mix, then the output of
"svnlook" is empty.

At least for creating commit emails (I'm using svnnotify), this is not
an ideal behaviour. Valueable information (test2.txt has been created by
copying test.txt) is omitted form the output.

What I actually expected as the output of svnlook diff --diff-copy-from
was something like this:

Copied: trunk/test2.txt (from rev 6, trunk/test.txt)
no diff, files are identical

Obviously, --no-diff-added and --no-diff-removed behave the same way.
They omit any added/deleted files completely. The output does not only
not contain a diff of the files, it also does not contain any
information that a file has been added or deleted.

I wish for a mode, in which "svnlook diff" would merely omit the actual
diff and not the information that files have been added/deleted or where
they were copied from.

I realize, that I can use "svnlook changed --copy-info" to obtain the
information I want. On the other hand, that information is seperate to
the diffs. And currently svnnotify doesn't support --copy-info which is
something I should probably talk about with the svnnotify developer.

Received on 2012-05-20 16:01:12 CEST

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