[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r37513 - trunk/subversion/libsvn_wc

From: Greg Stein <gstein_at_gmail.com>
Date: Tue, 5 May 2009 18:42:32 +0200

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.