Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > Re: inaccurate size reported by svn ls

subversion
Discussion topic

Back to topic list

Re: inaccurate size reported by svn ls

Author dave_rodgman at fastmail dot co dot uk
Full name dave_rodgman at fastmail dot co dot uk
Date 2009-05-15 06:44:34 PDT
Message On Fri, 15 May 2009 09:31 -0400, "C. Michael Pilato"
<cmpilato at collab dot net> wrote:
> dave_rodgman at fastmail dot co dot uk wrote:
> > Hi,
> >
> > I notice that svn ls appears to report size inaccurately:
> >
> > svn cat http://.../file | wc -c
> > 1855
> >
> > vs
> >
> > svn ls --xml http://.../file
> >
> > ...
> > <size>1710</size>
>
> [This is borderline off-topic for a list devoted to the development of
> Subversion.]
>
> 'svn cat' takes into account newline conversion and keyword expansion.
> So,
> if you're on Windows, it would be common for 'svn cat's output to contain
> double the end-of-line characters (since repository normal form is
> line-feed
> only, where Windows typical form is carriage-return + line-feed). And if
> there are keywords to be expanded client side, that adds more bulk. Does
> this explain your specific situation?

Ah, I'd forgotten about the keyword expansion. That explains it, thanks.

It's not clear that this is the right thing for svn to report though.
Keyword
expansion is enabled by properties on the file, not by a particular
client, so
all well-behaved clients (I assume) must expand the keywords when
presenting
the file.

It seems wrong that when presenting the file in full (as in svn cat)
it's done
with keywords expanded, but not when presenting a summary of the file.

thanks

Dave


>
> --
> C. Michael Pilato <cmpilato at collab dot net>
> CollabNet <> www.collab.net <> Distributed Development On Demand
>
--
  
  dave_rodgman at fastmail dot co dot uk

« Previous message in topic | 3 of 3 | Next message in topic »

Messages

Show all messages in topic

inaccurate size reported by svn ls dave_rodgman at fastmail dot co dot uk dave_rodgman at fastmail dot co dot uk 2009-05-15 06:26:41 PDT
     Re: inaccurate size reported by svn ls cmpilato C. Michael Pilato 2009-05-15 06:31:10 PDT
         Re: inaccurate size reported by svn ls dave_rodgman at fastmail dot co dot uk dave_rodgman at fastmail dot co dot uk 2009-05-15 06:44:34 PDT
Messages per page: