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

possible diff --summarize bug

From: Daniel Risse <dan_at_tierra.net>
Date: 2007-04-04 23:56:17 CEST

I'm trying to write some tools to help manage having a /trunk and
/branches/live. In writing up some tests and scenarios, I believe that I
have found an error.

The structure of the test repository is:
$ svnlook tree /usr/tmp/repos/
/
 trunk/
  lib/
   Admin.pm
 branches/
  live/
   lib/
    Admin.pm

I would like to be able to view a summary of what is different with:
$ svn diff --summarize file:///usr/tmp/repos/branches/live/lib/Admin.pm
file:///usr/tmp/repos/trunk/lib/Admin.pm
M file:///usr/tmp/repos/branches/live/lib/Admin.pm/Admin.pm

There is an extra /Admin.pm at the end of the line I was not expecting.

Viewing the non summarized output looks correct though:
$ svn diff file:///usr/tmp/repos/branches/live/lib/Admin.pm
file:///usr/tmp/repos/trunk/lib/Admin.pm
Index: Admin.pm
===================================================================
--- Admin.pm (.../branches/live/lib/Admin.pm) (revision 4)
+++ Admin.pm (.../trunk/lib/Admin.pm) (revision 4)
@@ -1,5 +1,4 @@
-package Admi;
+package Admin;

 1;

Incidentally, I noticed that I get the expected output if I ask for a diff
between the directories instead of the actual files.
$ svn diff --summarize file:///usr/tmp/repos/branches/live/lib
file:///usr/tmp/repos/trunk/lib
M file:///usr/tmp/repos/branches/live/lib/Admin.pm

Is this a known issue, or am I not executing the command correctly?

Thanks,
  Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 4 23:56:29 2007

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.