FreeBSD/contrib/subversion/subversion/svnrdump/dump_editor.c
/* Dump pending headers and properties for the directory EB->pending_db (if
 * not null), to allow starting the dump of a child node */
Dump pending headers and properties for the directory EB->pending_db (if
not null), to allow starting the dump of a child node
Dump pending headers and properties for the directory EB - > pending_db ( if not null ) to allow starting the dump of a child node
static svn_error_t *
dump_pending_dir(struct dump_edit_baton *eb,
                 apr_pool_t *scratch_pool)
{
  struct dir_baton *db = eb->pending_db;
  svn_stringbuf_t *prop_content = NULL;
  if (! db)
    return SVN_NO_ERROR;
  if (db->dump_props)
    {
      SVN_ERR(get_props_content(db->headers, &prop_content,
                                db->props, db->deleted_props,
                                scratch_pool, scratch_pool));
    }
  SVN_ERR(svn_repos__dump_node_record(eb->stream, db->headers, prop_content,
                                      FALSE, 0, FALSE ,
                                      scratch_pool));
  SVN_ERR(svn_stream_puts(eb->stream, "\n\n"));
  if (db->dump_props)
    {
      apr_hash_clear(db->props);
      apr_hash_clear(db->deleted_props);
      db->dump_props = FALSE;
    }
  eb->pending_db = NULL;
  return SVN_NO_ERROR;
}
static svn_error_t * dump_pending_dir ( struct dump_edit_baton * eb , apr_pool_t * scratch_pool ) { struct dir_baton * db = eb -> pending_db ; svn_stringbuf_t * prop_content = NULL ; if ( ! db ) return SVN_NO_ERROR ; if ( db -> dump_props ) { SVN_ERR ( get_props_content ( db -> headers , & prop_content , db -> props , db -> deleted_props , scratch_pool , scratch_pool ) ) ; } SVN_ERR ( svn_repos__dump_node_record ( eb -> stream , db -> headers , prop_content , FALSE , 0 , FALSE , scratch_pool ) ) ; SVN_ERR ( svn_stream_puts ( eb -> stream , " \n \n " ) ) ; if ( db -> dump_props ) { apr_hash_clear ( db -> props ) ; apr_hash_clear ( db -> deleted_props ) ; db -> dump_props = FALSE ; } eb -> pending_db = NULL ; return SVN_NO_ERROR ; }
Dump pending headers and properties for the directory EB->pending_db (if
 not null), to allow starting the dump of a child node
Dump pending headers and properties for the directory EB - > pending_db ( if not null ) to allow starting the dump of a child node
/* Some pending properties to dump? */ /*content_length_always*/ /* No text is going to be dumped. Write a couple of newlines and
       wait for the next node/ revision. */ /* Cleanup so that data is never dumped twice. */ /* Anything that was pending is pending no longer. */