Author: hwright
Date: Thu Apr 28 20:59:27 2011
New Revision: 1097609
URL: http://svn.apache.org/viewvc?rev=1097609&view=rev
Log:
* subversion/libsvn_client/deprecated.c
(info_from_info2): Translate the "invalid" constant to the correct
(deprecated) value.
Modified:
subversion/trunk/subversion/libsvn_client/deprecated.c
Modified: subversion/trunk/subversion/libsvn_client/deprecated.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/deprecated.c?rev=1097609&r1=1097608&r2=1097609&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/deprecated.c (original)
+++ subversion/trunk/subversion/libsvn_client/deprecated.c Thu Apr 28 20:59:27
2011
@@ -2019,7 +2019,9 @@ info_from_info2(const svn_info2_t *info2
info->lock = info2->lock;
info->size64 = info2->size;
- if (((apr_size_t)info->size64) == info->size64)
+ if (info2->size == SVN_INVALID_FILESIZE)
+ info->size = SVN_INFO_SIZE_UNKNOWN;
+ else if (((apr_size_t)info->size64) == info->size64)
info->size = (apr_size_t)info->size64;
else /* >= 4GB */
info->size = SVN_INFO_SIZE_UNKNOWN;