File sizes in ReposStyle

5 views
Skip to first unread message

Jon

unread,
Oct 17, 2008, 7:30:06 AM10/17/08
to ReposStyle
Is there any (easy) way to display file or folder sizes using
ReposStyle?
I'm not very XML literate, so I thought I would ask before I start
messing the whole thing up.

Staffan Olsson

unread,
Oct 25, 2008, 2:42:31 AM10/25/08
to repos...@googlegroups.com
HI,

Sorry for the late answer. There is no easy way because subversion
only sends the names and type (file/folder) in the XML. I think it
would be possible to implement using a javascript added to the page,
running XMLHttpRequest (Ajax) with a HEAD request to each file and
then reading the returned Content-Length header.

It is also possible, of course, to do something like the log viewer
that runs "svn list --xml" and formats the result using xslt, but that
would not have the benefit och being displayed under the correct
subversion URL.

/Staffan

Reply all
Reply to author
Forward
0 new messages