Changeset 1574 for branches/0.10-stable


Ignore:
Timestamp:
Feb 18, 2015, 7:08:32 PM (5 years ago)
Author:
Jari Häkkinen
Message:

Addresses #528. The baseplugins issue is resolved with this fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.10-stable/lib/SVN.cc

    r1515 r1574  
    55  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    66  Copyright (C) 2010, 2011, 2012 Peter Johansson
     7  Copyright (C) 2015 Jari Häkkinen
    78
    89  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    99100    svn_error_t* err=NULL;
    100101
    101     // initialize something (APR subsystem and more). The APR
    102     // subsystem is automatically destroyed at program exit. In case
    103     // of several calls to svn_cmdline_init (ie. several exceptions
    104     // thrown and caught with subsequent reinitializatios is safe
    105     // memorywise but what about APR internal counters?)
     102    // From http://subversion.apache.org: Applications using the
     103    // Subversion libraries must call apr_initialize() before calling
     104    // any Subversion functions.
     105    apr_initialize();
     106
     107    // The subversion API documentation says that svn_cmdline_init
     108    // will iSet up the locale for character conversion, and
     109    // initialize APR". The documentation goes on to say that this
     110    // function should only be called once before any other APR and
     111    // subversion functions. This of course is in conflict with the
     112    // apr_initialize() recommendation above.
    106113    if (svn_cmdline_init("svndigest",stderr) != EXIT_SUCCESS)
    107114      throw SVNException("SVN: svn_cmdline_init failed");
Note: See TracChangeset for help on using the changeset viewer.