Changeset 142 for trunk/lib/SVNinfo.cc


Ignore:
Timestamp:
Aug 8, 2006, 9:23:11 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #56. Changed pool usage to use subpools that are cleared after usages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVNinfo.cc

    r140 r142  
    4141  svn_error_t *
    4242  SVNinfo::info_receiver(void *baton, const char *, const svn_info_t *info,
    43                          apr_pool_t *pool)
     43                         apr_pool_t*)
    4444  {
    4545    if (!info)
    4646      throw SVNException(std::string("SVNinfo::info_receriver: ") +
    4747                         "Failed to acquire an svn info object");
    48     static_cast<struct info_receiver_baton*>(baton)->info=svn_info_dup(info,
    49                                                                        pool);
     48
     49    info_receiver_baton* irb=static_cast<struct info_receiver_baton*>(baton);
     50    if (info->repos_root_URL)
     51      irb->repos_root_url_=info->repos_root_URL;
     52    if (info->last_changed_author)
     53      irb->last_changed_author_=info->last_changed_author;
     54    if (info->last_changed_rev)
     55      irb->last_changed_rev_=info->last_changed_rev;
     56    if (info->rev)
     57      irb->rev_=info->rev;
     58
    5059    return SVN_NO_ERROR;
    5160  }
Note: See TracChangeset for help on using the changeset viewer.