On Thu, Apr 30, 2009 at 17:01, Hyrum K. Wright <hyrum_at_hyrumwright.org> wrote:
>...
> +++ trunk/subversion/libsvn_wc/upgrade.c     Thu Apr 30 08:01:58 2009     (r37513)
>...
> +static svn_error_t *
> +convert_props_walker(void *baton,
> + Â Â Â Â Â Â Â Â Â Â const char *path,
> + Â Â Â Â Â Â Â Â Â Â const apr_finfo_t *finfo,
> + Â Â Â Â Â Â Â Â Â Â apr_pool_t *pool)
> +{
> + Â svn_wc__db_t *db = baton;
> + Â apr_hash_t *proplist;
> + Â apr_file_t *file;
> + Â svn_stream_t *stream;
> + Â const char *local_abspath;
> + Â int len;
> +
> + Â /* Skip the directory. */
> + Â if (finfo->filetype == APR_DIR)
> + Â Â return SVN_NO_ERROR;
> +
> + Â proplist = apr_hash_make(pool);
> + Â SVN_ERR(svn_io_file_open(&file, path, APR_READ | APR_BUFFERED,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â APR_OS_DEFAULT, pool));
> + Â stream = svn_stream_from_aprfile2(file, FALSE, pool);
Seems like you could just use svn_stream_open_readonly() above.
>...
Cheers,
-g
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2070811
Received on 2009-05-05 18:42:48 CEST