FreeBSD/contrib/subversion/subversion/libsvn_repos/dump.c
/* If the mergeinfo in MERGEINFO_STR refers to any revisions older than
 * OLDEST_DUMPED_REV, issue a warning and set *FOUND_OLD_MERGEINFO to TRUE,
 * otherwise leave *FOUND_OLD_MERGEINFO unchanged.
 */
If the mergeinfo in MERGEINFO_STR refers to any revisions older than
OLDEST_DUMPED_REV, issue a warning and set *FOUND_OLD_MERGEINFO to TRUE,
otherwise leave *FOUND_OLD_MERGEINFO unchanged.
If the mergeinfo in MERGEINFO_STR refers to any revisions older than OLDEST_DUMPED_REV issue a warning and set * FOUND_OLD_MERGEINFO to TRUE otherwise leave * FOUND_OLD_MERGEINFO unchanged .
static svn_error_t *
verify_mergeinfo_revisions(svn_boolean_t *found_old_mergeinfo,
                           const char *mergeinfo_str,
                           svn_revnum_t oldest_dumped_rev,
                           svn_repos_notify_func_t notify_func,
                           void *notify_baton,
                           apr_pool_t *pool)
{
  svn_mergeinfo_t mergeinfo, old_mergeinfo;
  SVN_ERR(svn_mergeinfo_parse(&mergeinfo, mergeinfo_str, pool));
  SVN_ERR(svn_mergeinfo__filter_mergeinfo_by_ranges(
            &old_mergeinfo, mergeinfo,
            oldest_dumped_rev - 1, 0,
            TRUE, pool, pool));
  if (apr_hash_count(old_mergeinfo))
    {
      notify_warning(pool, notify_func, notify_baton,
                     svn_repos_notify_warning_found_old_mergeinfo,
                     _("Mergeinfo referencing revision(s) prior "
                       "to the oldest dumped revision (r%ld). "
                       "Loading this dump may result in invalid "
                       "mergeinfo."),
                     oldest_dumped_rev);
      if (found_old_mergeinfo)
        *found_old_mergeinfo = TRUE;
    }
  return SVN_NO_ERROR;
}
static svn_error_t * verify_mergeinfo_revisions ( svn_boolean_t * found_old_mergeinfo , const char * mergeinfo_str , svn_revnum_t oldest_dumped_rev , svn_repos_notify_func_t notify_func , void * notify_baton , apr_pool_t * pool ) { svn_mergeinfo_t mergeinfo , old_mergeinfo ; SVN_ERR ( svn_mergeinfo_parse ( & mergeinfo , mergeinfo_str , pool ) ) ; SVN_ERR ( svn_mergeinfo__filter_mergeinfo_by_ranges ( & old_mergeinfo , mergeinfo , oldest_dumped_rev - 1 , 0 , TRUE , pool , pool ) ) ; if ( apr_hash_count ( old_mergeinfo ) ) { notify_warning ( pool , notify_func , notify_baton , svn_repos_notify_warning_found_old_mergeinfo , _ ( " " " " " " " " ) , oldest_dumped_rev ) ; if ( found_old_mergeinfo ) * found_old_mergeinfo = TRUE ; } return SVN_NO_ERROR ; }
If the mergeinfo in MERGEINFO_STR refers to any revisions older than
 OLDEST_DUMPED_REV, issue a warning and set *FOUND_OLD_MERGEINFO to TRUE,
 otherwise leave *FOUND_OLD_MERGEINFO unchanged.
If the mergeinfo in MERGEINFO_STR refers to any revisions older than OLDEST_DUMPED_REV issue a warning and set * FOUND_OLD_MERGEINFO to TRUE otherwise leave * FOUND_OLD_MERGEINFO unchanged .