Changeset 1579 for trunk/lib/SVN.cc


Ignore:
Timestamp:
Feb 23, 2015, 6:21:49 AM (7 years ago)
Author:
Peter Johansson
Message:

merged patch release 0.10.2 into trunk

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/lib/SVN.cc

    r1547 r1579  
    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
     
    102103    svn_error_t* err=NULL;
    103104
    104     // initialize something (APR subsystem and more). The APR
    105     // subsystem is automatically destroyed at program exit. In case
    106     // of several calls to svn_cmdline_init (ie. several exceptions
    107     // thrown and caught with subsequent reinitializatios is safe
    108     // memorywise but what about APR internal counters?)
     105    // From http://subversion.apache.org: Applications using the
     106    // Subversion libraries must call apr_initialize() before calling
     107    // any Subversion functions.
     108    apr_initialize();
     109
     110    // The subversion API documentation says that svn_cmdline_init
     111    // will iSet up the locale for character conversion, and
     112    // initialize APR". The documentation goes on to say that this
     113    // function should only be called once before any other APR and
     114    // subversion functions. This of course is in conflict with the
     115    // apr_initialize() recommendation above.
    109116    if (svn_cmdline_init("svndigest",stderr) != EXIT_SUCCESS)
    110117      throw SVNException("SVN: svn_cmdline_init failed");
Note: See TracChangeset for help on using the changeset viewer.