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

Re: Show file sizes in "Show Log" window and similar

From: Greywolf <greywolf_at_starwolf.com>
Date: Tue, 29 Jun 2010 11:35:50 -0700

On 06/29/2010 10:27 AM, Andy Levy wrote:
> On Tue, Jun 29, 2010 at 13:18, Greywolf<greywolf_at_starwolf.com> wrote:
>> Showing file sizes somewhere in metadata. The problem is agreeing what the name
>> of the metadata field will be.
>>
>> Now you COULD do an approximation as a pre-commit hook by simply doing
>> effectively a 'ls -l' or equivalent and parsing it out, and then apply that as a
>> property at checkin time.
>
> As noted by Konstantin, different environments will have different EOL
> markers if you set svn:eol-style to native. \r vs. \r\n (vs. other?).
> This will result in different sizes reported for the same file with
> the same number of characters otherwise. And do you count expanded
> keywords or not? If you don't intend to, then ls -l don't provide the
> correct answer.

This depends, of course, on the degree of precision you want.
If you do 'ls -sH' or something, you get the "human readable"
version which, in most cases, is "good enough".

Your point is taken, though -- if "good enough" isn't, then yeah,
there's an issue.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2627425

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-06-29 20:36:11 CEST

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

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