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

RE: svn_dirent_t::size: often not the "real" file size

From: Bert Huijben <bert_at_qqmail.nl>
Date: Thu, 2 Feb 2017 10:38:46 +0100

The size reported is the size of the file in repository form. The size might
be different when a different line end encoding is used and/or when keyword
expansion is enabled. (Can be larger or smaller)


svn_client_statusX() reports both sizes when the file is a ‘normal’ working
copy file.


The list function works 100% repository side and we simply don’t know the
size the file would be in some working copy, as the size might be different
in other working copies.




From: Bijewitz, Volker [mailto:v.bijewitz_at_baum.de]
Sent: donderdag 2 februari 2017 09:22
To: users_at_subversion.apache.org
Subject: svn_dirent_t::size: often not the "real" file size


Hi SVN developers,


I am working on an TotalCommander plugin to browse SVN repositories. Now I
have the problem that on some repositories the filesize reported by
svn_client_list3 is different from the “real” file size of the working copy
– so comparing the SVN repo with the working copy is impossible. So here are
my questions on this issue:


* Is there a way for a SVN client to detect the “real” filesize?

* Does this behavior change with the server version? I have one
server where the filesize seems to match, another server where it does not

* If there are servers that reports “real” file sizes: is there a
client functionality to detect if he is connected to a server with “good”


This may be not the correct way to do a compare, there would be better ways
using the SVN interface. But I am limited to the TC plugin interface. And in
this interface there is no “Compare with file” function. I have just to
deliver the correct properties, and TC itself does the operation in a way
the user has configured it.




Volker Bijewitz


BAUM Systeme GmbH

Industriestr. 15

74909 Meckesheim



E-Mail : V.Bijewitz_at_baum.de <mailto:V.Bijewitz_at_baum.de>

Internet: www.baum.de <http://www.baum.de/>



Geschäftsführer: Wolfgang Baum - Thomas Friehoff


Registergericht Mannheim, HRB 333567

Gerichtsstand: Heidelberg


VAT Nr: DE 143260354

IK 590820251



Commerzbank Heidelberg

IBAN: DE63 6724 0039 0193 5808 00


Postbank Karlsruhe

IBAN: DE40 6601 0075 0202 5007 54



Received on 2017-02-02 10:39:20 CET

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

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