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

Possible bug: svn log hiding information about changes?

From: Daniel Patterson <danpat_at_danpat.net>
Date: 2006-02-03 13:03:18 CET

Hello,

   I'm writing an small program to feed changes
   from a Subversion repository into a Clearcase view.
   To do this, I'm using "svn log --xml -v" and processing
   it with xsltproc and a stylesheet (which I'll post
   for inclusion in the contrib dir at a later date)
   to generate a list of clearcase commands to execute
   for each type of operation (rename, delete, add, modify,
   etc).

   The problem is that it isn't possible to tell the difference
   between a directory and a file add.
   The quick summary is that one sees log entries that look
   like:

   svn log -v -r 1
    A /dir1
    A /file1

   There is no indication that these are two different types.
   This is slightly confusing, because svnlook *does* tell
   us the differences, by appending a "/" to entries that
   are directories:

   svnlook changed /repos -r 1
    A dir1/
    A file1

   Should I file a bug? The output of svn log isn't complete IMO.
   I *could* solve my problem by doing an extra "svnlook" call
   to find out what each kind of add is, but I think I should
   be able to obtain all that information directly from the log
   output.

   Please CC me on replies, I'm not on the list.

daniel

   Reproduction recipe:

     cd /tmp
     svnadmin create repos
     mkdir workspace
     cd workspace
     svn co file:///tmp/repos
     cd repos
     mkdir dir1
     touch file1
     svn add dir1 file1
     svn commit -m ""
     svn log -v

   This gives me:
------------------------------------------------------------------------
r1 | danpat | 2006-02-03 22:53:04 +1100 (Fri, 03 Feb 2006) | 1 line
Changed paths:
    A /dir1
    A /file1

   or, in XML format:

<?xml version="1.0" encoding="utf-8"?>
<log>
<logentry
    revision="1">
<author>danpat</author>
<date>2006-02-03T11:53:04.740943Z</date>
<paths>
<path
    action="A">/file1</path>
<path
    action="A">/dir1</path>
</paths>
<msg></msg>
</logentry>
</log>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 3 22:43:54 2006

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.