FreeBSD/contrib/subversion/subversion/libsvn_client/mtcc.c
/* Obtains the original repository location for an mtcc relpath as
   *ORIGIN_RELPATH @ *REV, if it has one. If it has not and IGNORE_ENOENT
   is TRUE report *ORIGIN_RELPATH as NULL, otherwise return an error */
Obtains the original repository location for an mtcc relpath as
ORIGIN_RELPATH @ *REV, if it has one. If it has not and IGNORE_ENOENT
is TRUE report *ORIGIN_RELPATH as NULL, otherwise return an error
Obtains the original repository location for an mtcc relpath as ORIGIN_RELPATH @ * REV if it has one . If it has not and IGNORE_ENOENT is TRUE report * ORIGIN_RELPATH as NULL otherwise return an error
static svn_error_t *
mtcc_get_origin(const char **origin_relpath,
                svn_revnum_t *rev,
                const char *relpath,
                svn_boolean_t ignore_enoent,
                svn_client__mtcc_t *mtcc,
                apr_pool_t *result_pool,
                apr_pool_t *scratch_pool)
{
  svn_boolean_t done = FALSE;
  *origin_relpath = NULL;
  *rev = SVN_INVALID_REVNUM;
  SVN_ERR(get_origin(&done, origin_relpath, rev, mtcc->root_op, relpath,
                     result_pool, scratch_pool));
  if (!*origin_relpath && !done)
    {
      *origin_relpath = apr_pstrdup(result_pool, relpath);
      *rev = mtcc->base_revision;
    }
  else if (!ignore_enoent)
    {
      return svn_error_createf(SVN_ERR_FS_NOT_FOUND, NULL,
                               _("No origin found for node at '%s'"),
                               relpath);
    }
  return SVN_NO_ERROR;
}
static svn_error_t * mtcc_get_origin ( const char * * origin_relpath , svn_revnum_t * rev , const char * relpath , svn_boolean_t ignore_enoent , svn_client__mtcc_t * mtcc , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { svn_boolean_t done = FALSE ; * origin_relpath = NULL ; * rev = SVN_INVALID_REVNUM ; SVN_ERR ( get_origin ( & done , origin_relpath , rev , mtcc -> root_op , relpath , result_pool , scratch_pool ) ) ; if ( ! * origin_relpath && ! done ) { * origin_relpath = apr_pstrdup ( result_pool , relpath ) ; * rev = mtcc -> base_revision ; } else if ( ! ignore_enoent ) { return svn_error_createf ( SVN_ERR_FS_NOT_FOUND , NULL , _ ( " " ) , relpath ) ; } return SVN_NO_ERROR ; }
Obtains the original repository location for an mtcc relpath as
ORIGIN_RELPATH @ *REV, if it has one.
Obtains the original repository location for an mtcc relpath as ORIGIN_RELPATH @ * REV if it has one .