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 dont know the
size the file would be in some working copy, as the size might be different
in other working copies.
Bert
From: Bijewitz, Volker [mailto:[email protected]]
Sent: donderdag 2 februari 2017 09:22
To: [email protected]
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
match.
* 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
behavior?
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.
Cheers,
Volker Bijewitz
BAUM Systeme GmbH
Industriestr. 15
74909 Meckesheim
E-Mail : [email protected] <mailto:[email protected]>
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
Bankverbindungen:
Commerzbank Heidelberg
IBAN: DE63 6724 0039 0193 5808 00
BIC: COBADEFFXXX
Postbank Karlsruhe
IBAN: DE40 6601 0075 0202 5007 54
BIC: PBNKDEFF