FreeBSD/contrib/subversion/subversion/libsvn_fs_x/revprops.c
/* Serialize the revision property list PROPLIST of revision REV in
 * filesystem FS to a non-packed file.  Return the name of that temporary
 * file in *TMP_PATH and the file path that it must be moved to in
 * *FINAL_PATH.
 *
 * Allocate *FINAL_PATH and *TMP_PATH in RESULT_POOL.  Use SCRATCH_POOL
 * for temporary allocations.
 */
Serialize the revision property list PROPLIST of revision REV in
filesystem FS to a non-packed file.  Return the name of that temporary
file in *TMP_PATH and the file path that it must be moved to in
*FINAL_PATH.


Serialize the revision property list PROPLIST of revision REV in filesystem FS to a non - packed file . Return the name of that temporary file in * TMP_PATH and the file path that it must be moved to in * FINAL_PATH .
static svn_error_t *
write_non_packed_revprop(const char **final_path,
                         const char **tmp_path,
                         svn_fs_t *fs,
                         svn_revnum_t rev,
                         apr_hash_t *proplist,
                         apr_pool_t *result_pool,
                         apr_pool_t *scratch_pool)
{
  svn_stream_t *stream;
  *final_path = svn_fs_x__path_revprops(fs, rev, result_pool);
  SVN_ERR(svn_stream_open_unique(&stream, tmp_path,
                                 svn_dirent_dirname(*final_path,
                                                    scratch_pool),
                                 svn_io_file_del_none,
                                 result_pool, scratch_pool));
  SVN_ERR(svn_hash_write2(proplist, stream, SVN_HASH_TERMINATOR,
                          scratch_pool));
  SVN_ERR(svn_stream_close(stream));
  return SVN_NO_ERROR;
}
static svn_error_t * write_non_packed_revprop ( const char * * final_path , const char * * tmp_path , svn_fs_t * fs , svn_revnum_t rev , apr_hash_t * proplist , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { svn_stream_t * stream ; * final_path = svn_fs_x__path_revprops ( fs , rev , result_pool ) ; SVN_ERR ( svn_stream_open_unique ( & stream , tmp_path , svn_dirent_dirname ( * final_path , scratch_pool ) , svn_io_file_del_none , result_pool , scratch_pool ) ) ; SVN_ERR ( svn_hash_write2 ( proplist , stream , SVN_HASH_TERMINATOR , scratch_pool ) ) ; SVN_ERR ( svn_stream_close ( stream ) ) ; return SVN_NO_ERROR ; }
Serialize the revision property list PROPLIST of revision REV in
 filesystem FS to a non-packed file.
Serialize the revision property list PROPLIST of revision REV in filesystem FS to a non - packed file .
/* ### do we have a directory sitting around already? we really shouldn't
     ### have to get the dirname here. */