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

Re: svn commit: r1136949 - in /subversion/trunk/subversion: include/svn_client.h include/svn_wc.h libsvn_client/status.c libsvn_wc/status.c

From: Greg Stein <gstein_at_gmail.com>
Date: Fri, 17 Jun 2011 16:21:28 -0400

On Fri, Jun 17, 2011 at 13:23, <cmpilato_at_apache.org> wrote:
>...
> +++ subversion/trunk/subversion/include/svn_client.h Fri Jun 17 17:23:59 2011
> @@ -2082,6 +2082,10 @@ typedef struct svn_client_status_t
>   /** The absolute path to the node */
>   const char *local_abspath;
>
> +  /** The actual size of the working file on disk, or -1 if unknown
> +   * (or if the item isn't a file at all). */

That should be SVN_INVALID_FILESIZE.

>...
> +++ subversion/trunk/subversion/include/svn_wc.h Fri Jun 17 17:23:59 2011
> @@ -3495,6 +3495,10 @@ typedef struct svn_wc_status3_t
>    * (#svn_depth_unknown for files or when no depth is set) */
>   svn_depth_t depth;
>
> +  /** The actual size of the working file on disk, or -1 if unknown
> +   * (or if the item isn't a file at all). */

Likewise.

>...
> +++ subversion/trunk/subversion/libsvn_wc/status.c Fri Jun 17 17:23:59 2011
> @@ -393,6 +393,8 @@ assemble_status(svn_wc_status3_t **statu
>   svn_error_t *err;
>   const char *repos_relpath;
>   const char *repos_root_url;
> +  svn_filesize_t filesize =
> +    (dirent && (dirent->kind == svn_node_file)) ? dirent->filesize : -1;

And here.

>...
> @@ -729,6 +732,7 @@ assemble_unversioned(svn_wc_status3_t **
>   /*stat->versioned = FALSE;*/
>   stat->kind = svn_node_unknown; /* not versioned */
>   stat->depth = svn_depth_unknown;
> +  stat->filesize = -1;
>   stat->node_status = svn_wc_status_none;
>   stat->text_status = svn_wc_status_none;
>   stat->prop_status = svn_wc_status_none;

And here.

Cheers,
-g
Received on 2011-06-17 22:22:01 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.