FreeBSD/contrib/subversion/subversion/libsvn_wc/entries.c
/* Read a pair of entries from wc_db in the directory DIR_ABSPATH. Return
   the directory's entry in *PARENT_ENTRY and NAME's entry in *ENTRY. The
   two returned pointers will be the same if NAME=="" ("this dir").

   The parent entry must exist.

   The requested entry MAY exist. If it does not, then NULL will be returned.

   The resulting entries are allocated in RESULT_POOL, and all temporary
   allocations are made in SCRATCH_POOL.  */
Read a pair of entries from wc_db in the directory DIR_ABSPATH. Return
the directory's entry in *PARENT_ENTRY and NAME's entry in *ENTRY. The
two returned pointers will be the same if NAME=="" ("this dir").

The parent entry must exist.

The requested entry MAY exist. If it does not, then NULL will be returned.

The resulting entries are allocated in RESULT_POOL, and all temporary
allocations are made in SCRATCH_POOL.
Read a pair of entries from wc_db in the directory DIR_ABSPATH . Return the directory ' s entry in * PARENT_ENTRY and NAME ' s entry in * ENTRY . The two returned pointers will be the same if NAME == " " ( " this dir " ) . The parent entry must exist . The requested entry MAY exist . If it does not then NULL will be returned . The resulting entries are allocated in RESULT_POOL and all temporary allocations are made in SCRATCH_POOL .
static svn_error_t *
read_entry_pair(const svn_wc_entry_t **parent_entry,
                const svn_wc_entry_t **entry,
                svn_wc__db_t *db,
                const char *dir_abspath,
                const char *name,
                apr_pool_t *result_pool,
                apr_pool_t *scratch_pool)
{
  svn_wc__db_wcroot_t *wcroot;
  const char *dir_relpath;
  SVN_ERR(svn_wc__db_wcroot_parse_local_abspath(&wcroot, &dir_relpath,
                                                db, dir_abspath,
                                                scratch_pool, scratch_pool));
  VERIFY_USABLE_WCROOT(wcroot);
  SVN_WC__DB_WITH_TXN(read_entry_pair_txn(parent_entry, entry,
                                          db, dir_abspath,
                                          wcroot, dir_relpath,
                                          name,
                                          result_pool, scratch_pool),
                      wcroot);
  return SVN_NO_ERROR;
}
static svn_error_t * read_entry_pair ( const svn_wc_entry_t * * parent_entry , const svn_wc_entry_t * * entry , svn_wc__db_t * db , const char * dir_abspath , const char * name , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { svn_wc__db_wcroot_t * wcroot ; const char * dir_relpath ; SVN_ERR ( svn_wc__db_wcroot_parse_local_abspath ( & wcroot , & dir_relpath , db , dir_abspath , scratch_pool , scratch_pool ) ) ; VERIFY_USABLE_WCROOT ( wcroot ) ; SVN_WC__DB_WITH_TXN ( read_entry_pair_txn ( parent_entry , entry , db , dir_abspath , wcroot , dir_relpath , name , result_pool , scratch_pool ) , wcroot ) ; return SVN_NO_ERROR ; }
Read a pair of entries from wc_db in the directory DIR_ABSPATH.
Read a pair of entries from wc_db in the directory DIR_ABSPATH .