You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Sven Köhler <sv...@gmail.com> on 2012/05/20 16:03:47 UTC

Behavious of svnlook diff --diff-copy-from

Hi,

Consider the following output produced with svnlook WITHOUT using
--diff-copy-from:

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 @@
+test2

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.


Regards,
  Sven