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

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

From: Branko ─îibej <brane_at_apache.org>
Date: Thu, 2 Feb 2017 12:02:26 +0100

On 02.02.2017 11:30, Bijewitz, Volker wrote:
> 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.

Why would you do that? You'd effectively have to check out the file in a
Subversion working copy to get the correct size (or reimplement
Subversion's end-of-line conversion and keyword expansion logic, which
I'd not recommend).

The size of the file in the repository is as real as any other size. As
are the contents. Does your plugin show file contents? If yes, does it
perform keyword expansion and newline substitution, like the Subversion
client would? If no, don't bother about tweaking the reported size.

-- Brane
Received on 2017-02-02 12:02:25 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.