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

svn log behaviour

From: Mikhail Sobolev <mss_at_mawhrin.net>
Date: 2004-12-10 16:42:26 CET

Hi

I'm using subversion to keep my Docbook documents. Now I reached a
point where the documents a big enough and a changelog of some sort
is required. I decided to use the log facility in subversion. So I
created a small stylesheet and used it like this:

    $ svn log --xml <file> | xsltproc svnlog2rh.xsl - > file.inc

And it went just fine. However my documents consist of several files,
thus I used the following construction:

    $ svn log --xml <file1> <file2> <file3> | xsltproc svnlog2rh.xsl - > mainfile.inc

And here I found that the behaviour of

    svn log file1 file2

is exactly the same as

    svn log file1; svn log file2

Meaning:

1. Items are not ordered from newest to oldest
2. If both files participated in one of the revisions this revision will
   be printed twice

(the same applies to xml output)

The first problem was overcome using sort facility in XSLT (and the
resulting stylesheet is attached for others, if they find it useful).

However the second problem requires a bit more advanced XSLT
programming.

I'd like to point out that 'svn log --help' says:

    Each log message is printed just once, even if more than one of the
    affected paths for that revision were explicitly requested.

which suggests the behaviour I need.

System information:

    Debian (unstable)

    $ svn --version
    svn, version 1.0.9 (r11378)
       compiled Oct 16 2004, 23:29:24

    Copyright (C) 2000-2004 CollabNet.
    Subversion is open source software, see http://subversion.tigris.org/
    This product includes software developed by CollabNet (http://www.Collab.Net/).

    The following repository access (RA) modules are available:

    * ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
      - handles 'http' schema
      - handles 'https' schema
    * ra_local : Module for accessing a repository on local disk.
      - handles 'file' schema
    * ra_svn : Module for accessing a repository using the svn network protocol.
      - handles 'svn' schema

Kind Regards,

--
Misha

Received on Fri Dec 10 16:44:30 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.