FreeBSD/contrib/subversion/subversion/svnrdump/dump_editor.c
/* Make a file baton to represent the directory at PATH (relative to
 * PB->eb).  PB is the directory baton of this directory's parent, or
 * NULL if this is the top-level directory of the edit.  Perform all
 * allocations in POOL.  */
Make a file baton to represent the directory at PATH (relative to
PB->eb).  PB is the directory baton of this directory's parent, or
NULL if this is the top-level directory of the edit.  Perform all
allocations in POOL.
Make a file baton to represent the directory at PATH ( relative to PB - > eb ) . PB is the directory baton of this directory ' s parent or NULL if this is the top - level directory of the edit . Perform all allocations in POOL .
static struct file_baton *
make_file_baton(const char *path,
                struct dir_baton *pb,
                apr_pool_t *pool)
{
  struct file_baton *new_fb = apr_pcalloc(pool, sizeof(*new_fb));
  new_fb->eb = pb->eb;
  new_fb->pool = pool;
  new_fb->repos_relpath = svn_relpath_canonicalize(path, pool);
  new_fb->props = apr_hash_make(pool);
  new_fb->deleted_props = apr_hash_make(pool);
  new_fb->is_copy = FALSE;
  new_fb->copyfrom_path = NULL;
  new_fb->copyfrom_rev = SVN_INVALID_REVNUM;
  new_fb->action = svn_node_action_change;
  return new_fb;
}
static struct file_baton * make_file_baton ( const char * path , struct dir_baton * pb , apr_pool_t * pool ) { struct file_baton * new_fb = apr_pcalloc ( pool , sizeof ( * new_fb ) ) ; new_fb -> eb = pb -> eb ; new_fb -> pool = pool ; new_fb -> repos_relpath = svn_relpath_canonicalize ( path , pool ) ; new_fb -> props = apr_hash_make ( pool ) ; new_fb -> deleted_props = apr_hash_make ( pool ) ; new_fb -> is_copy = FALSE ; new_fb -> copyfrom_path = NULL ; new_fb -> copyfrom_rev = SVN_INVALID_REVNUM ; new_fb -> action = svn_node_action_change ; return new_fb ; }
Make a file baton to represent the directory at PATH (relative to
 PB->eb).
Make a file baton to represent the directory at PATH ( relative to PB - > eb ) .