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

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

From: Bijewitz, Volker <v.bijewitz_at_baum.de>
Date: Thu, 2 Feb 2017 11:30:36 +0100

Ok, thank you for explaining this. Yes, I understand that SVN is normalizing
the text files, so their real size may differ from client to client.

 

Unfortunately I do not know if the user has got an working copy and where it
can be found . So the only way to solve this is creating once a local copy of
each file and store the real size in a DB referenced by the file URL and
revision number L.

 

Volker

 

Von: Bert Huijben [mailto:bert_at_qqmail.nl]
Gesendet: Donnerstag, 2. Februar 2017 10:39
An: Bijewitz, Volker; users_at_subversion.apache.org
Betreff: RE: svn_dirent_t::size: often not the "real" file size

 

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.

 

                Bert

 

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
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 : 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

 

Bankverbindungen:

Commerzbank Heidelberg

IBAN: DE63 6724 0039 0193 5808 00

BIC: COBADEFFXXX

Postbank Karlsruhe

IBAN: DE40 6601 0075 0202 5007 54

BIC: PBNKDEFF

 

 
Received on 2017-02-02 11:32:31 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.