Was this page helpful?

Subversion Log Reports

    Vendor MindTouch
    Type Native
    Categories Developer
    Requires MindTouch 1.9 or later
    OS Restriction None
    Status Stable
    License Free/Open Source
    SID (service id) sid://mindtouch.com/2008/02/svn
    Assembly mindtouch.deki.services

    Install Extension

    URL of your MindTouch install (ex: http://www.mindtouch.com)
        

     

    Table of Contents

    Description

    This extension contains functions for embeding Subversion (SVN) commit logs with automatic links to a bug tracker.

    See also How to add an extension, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.

    Configuration:

    Before the Subversion service can be used, it must be configured.

    Config Key Description
    svn-uri URI to the SVN repository. Example: https://dekiwiki.svn.sourceforge.net/svnroot/dekiwiki
    username Optional username for SVN repository
    password Optional password for SVN repository
    path-to-svn Path to the 'svn' binary on the file system. Default: /usr/bin/svn
    bugs-uri Optional URI to a bug tracker with the bug# replaced with '$1'. Example: http://bugs.opengarden.org/view.php?id=$1
    svn-revision-uri Optional URI to a web based SVN revision viewer with the revision# replaced with '$1' . Example: http://dekiwiki.svn.sourceforge.net/...ev&revision=$1

      

    Additional Information:

    As for every extension, the subversion extension can be added several times, e.g. for different servers. To accomplish this, set the service preference "namespace". If it is set e.g. to "mysvn", the subversion service is being invoked by mysvn.table(...). If all repositories are on the same server, this is not needed, use the parameter "path" (see below) for this.


    svn.table(path : str, range : str, limit : num, verbose : bool ) : xml

    The SVN revision log from a given path. Bug numbers mentioned in the commit messages can be automatically linked to a bug tracking system

    Parameters:

    Name Type Description
    path string optional. Path within the repository to include
    range string optional. Revision ranges to include. Same syntax as described in 'svn help log'
    limit int optional. Limit the number of revisions returned
    verbose bool optional. Show full log message or just the first line. (Default: false)

    Samples:

       Output

    Output up to 30 revisions from trunk with the given revision range. Output full log comments.

    {{ svn.table{ path: "public/dekiwiki/trunk", range: "8465:8450", limit: 30, verbose: true} }}
    svn table.PNG

    Output the last 30 entries from trunk.

    {{ svn.table{ path: "public/dekiwiki/trunk", limit: 30} }}
      
    Was this page helpful?
    Tag page

    Files 1

    FileVersionSizeModified 
    Viewing 15 of 15 comments: view all
    How does one go about overcoming this error?

    "Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted"

    I guess I need a proper SSL certificate.
    Posted 22:34, 28 Apr 2008
    This extension is great. I modified it slightly to handle bugtraq svn properties or to allow a configurable bug id regular expression. I posted the source and notes at: http://wiki.developer.mindtouch.com/MindTouch_Deki/Community_Contributions/Extensions/Subversion_(with_support_for_bugtraq_properties)
    Posted 07:45, 1 Jul 2008
    This is a really great extension, however there is one thing that annoys me a lot: The date format. =(
    Would it be too hard to make it configurable? Or if it is, then use some kind of a standard instead of the current format, for example YYYY-MM-DD HH:MM:SS without the AM/PM or something? The current American version is unreadable for anyone who is from anywhere else than US.
    Posted 03:47, 13 Aug 2008
    @demonicus, excellent suggestion. it's so easy to forget proper international etiquette. i filed a bug on it: http://bugs.developer.mindtouch.com/view.php?id=4766 edited 05:53, 13 Aug 2008
    Posted 05:52, 13 Aug 2008
    @demonicus. good find. Should be fixed in Killen Woods
    Posted 10:18, 13 Aug 2008
    Another bug/feature I found was also about the date/time. I committed a change to a file at 17:40(5:40PM), and when I look at the svn log with my svn client, it shows the correct time, also I checked the version control server's time too and it was correct, and on the server the log showed the correct time.

    However, when I use this subversion extension, the time is 3 hours behind, showing 2:40PM as the commit time. I have changed the timezone settings from the personal preferences to GMT+3. So, is Deki assuming that the server is always at GMT+0 and it's trying to adjust the date wrong or something?
    Posted 06:51, 17 Aug 2008
    Update to my previous post: I noticed that our Deki server is actually at GMT+0 zone, I think it was the default timezone or something?
    Anyways, could be useful to have a configurable timezone for the Deki itself, as the server time doesn't have to mean that it's the wanted Deki timezone aswell. At least I can find a few instances where it might need to be different from the server's time.
    Posted 07:40, 17 Aug 2008
    Hi I had an issue with svn.table where if I used a path with spaces or special characters I would receive an error. In command line svn the solution would be to use backslash as an escape character. This does not work with svn.table what does work is using double backslash.
    Posted 23:21, 20 Aug 2008
    @stephencarr, i have the same problem:
    /p[2]/span, function 'Table' failed with response:

    SVN error: svn: PROPFIND request failed on '/svn/myrepo'
    svn: PROPFIND of '/svn/myrepo': Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (https://example.com)

    any solution anybody?
    Posted 00:36, 6 Nov 2008
    the solution to fix this problem is to log into the server that is running the dekiwiki site and on the cli run something like this:
    sudo su - dekiwiki
    svn list https://example.com/mysvnroot
    and accept the issuer permanently (p) edited 06:31, 12 Nov 2008
    Posted 05:27, 12 Nov 2008
    Is is possible to set username and password within extension calling in Deki page?
    That way there could be set different SVN rights for different pages and to hide SVN from using from different Deki user groups.
    Posted 08:20, 3 Feb 2010
    @varosi I think that would be easily done with some modifications to the existing extension by taking user credentials through the function invocation and then storing the credentials in user properties, which can only be read by the user himself and nobody else.
    Posted 12:01, 3 Feb 2010
    It'll be good feature to have access rights for extensions. For example, SVN could be accessible only for developers.
    Posted 08:30, 8 Feb 2010
    @SteveB re: #4 the bug is filed as fixed, but it does not appear to follow our locale - do I need to set the time format specifically for this extension somewhere?
    Posted 06:51, 14 Apr 2010
    Path to the 'svn' binary on the file system. Default: /usr/bin/svn
    How does this work in the case of a Windows installation (e.g. C:\Program Files\CollabNet\Subversion Client)?
    Posted 11:40, 19 Oct 2011
    Viewing 15 of 15 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by