FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Return a new history object (marked as "interesting") for PATH and
   REVISION, allocated in RESULT_POOL, and with its members set to the
   values of the parameters provided.  Note that PATH and PATH_HINT get
   normalized and duplicated in RESULT_POOL. */
Return a new history object (marked as "interesting") for PATH and
REVISION, allocated in RESULT_POOL, and with its members set to the
values of the parameters provided.  Note that PATH and PATH_HINT get
normalized and duplicated in RESULT_POOL.
Return a new history object ( marked as " interesting " ) for PATH and REVISION allocated in RESULT_POOL and with its members set to the values of the parameters provided . Note that PATH and PATH_HINT get normalized and duplicated in RESULT_POOL .
static svn_fs_history_t *
assemble_history(svn_fs_t *fs,
                 const char *path,
                 svn_revnum_t revision,
                 svn_boolean_t is_interesting,
                 const char *path_hint,
                 svn_revnum_t rev_hint,
                 apr_pool_t *result_pool)
{
  svn_fs_history_t *history = apr_pcalloc(result_pool, sizeof(*history));
  fs_history_data_t *fhd = apr_pcalloc(result_pool, sizeof(*fhd));
  fhd->path = svn_fs__canonicalize_abspath(path, result_pool);
  fhd->revision = revision;
  fhd->is_interesting = is_interesting;
  fhd->path_hint = path_hint
                 ? svn_fs__canonicalize_abspath(path_hint, result_pool)
                 : NULL;
  fhd->rev_hint = rev_hint;
  fhd->fs = fs;
  history->vtable = &history_vtable;
  history->fsap_data = fhd;
  return history;
}
static svn_fs_history_t * assemble_history ( svn_fs_t * fs , const char * path , svn_revnum_t revision , svn_boolean_t is_interesting , const char * path_hint , svn_revnum_t rev_hint , apr_pool_t * result_pool ) { svn_fs_history_t * history = apr_pcalloc ( result_pool , sizeof ( * history ) ) ; fs_history_data_t * fhd = apr_pcalloc ( result_pool , sizeof ( * fhd ) ) ; fhd -> path = svn_fs__canonicalize_abspath ( path , result_pool ) ; fhd -> revision = revision ; fhd -> is_interesting = is_interesting ; fhd -> path_hint = path_hint ? svn_fs__canonicalize_abspath ( path_hint , result_pool ) : NULL ; fhd -> rev_hint = rev_hint ; fhd -> fs = fs ; history -> vtable = & history_vtable ; history -> fsap_data = fhd ; return history ; }
Return a new history object (marked as "interesting") for PATH and
REVISION, allocated in RESULT_POOL, and with its members set to the
values of the parameters provided.
Return a new history object ( marked as " interesting " ) for PATH and REVISION allocated in RESULT_POOL and with its members set to the values of the parameters provided .