Changeset 129 for trunk/lib/SVN.cc


Ignore:
Timestamp:
Aug 2, 2006, 7:56:18 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses ticket:23. Changed usage of 'svn info' to API calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVN.cc

    r123 r129  
    155155
    156156  svn_error_t *
    157   SVN::info_receiver(void *baton, const char *, const svn_info_t *info,
    158                      apr_pool_t *)
    159   {
    160     if (!info || !info->repos_root_URL)
    161       throw SVNException("Failed to acquire repository root URL");
    162     static_cast<struct info_receiver_baton*>(baton)->repos_root_url=
    163       info->repos_root_URL;
    164     return SVN_NO_ERROR;
    165   }
    166 
    167 
    168   svn_error_t *
    169157  SVN::log_message_receiver(void *baton, apr_hash_t *changed_paths,
    170158                            svn_revnum_t rev, const char *author,
     
    177165      throw SVNException("No date defined for revision: " + rev);
    178166    return SVN_NO_ERROR;
    179   }
    180 
    181 
    182   std::string SVN::repository(const std::string& path)
    183   {
    184     struct info_receiver_baton ib;
    185     if (svn_client_info(path.c_str(), NULL, NULL, info_receiver,
    186                         static_cast<void*>(&ib), false, context_, pool_))
    187       throw SVNException("repository: svn_client_info failed");
    188     return ib.repos_root_url;
    189167  }
    190168
Note: See TracChangeset for help on using the changeset viewer.