This is my 4th attempt at getting this mail onto the dev
list, I don't understand why it isn't getting through.
For those of you who don't know it, WebSVN
(websvn.tigris.org) is a fully featured Web based viewer for
SVN Repositories that been growing steadily in popularity.
It's written in PHP.
Due to the current lack of PHP/Swig bindings, WebSVN uses
the command line to accomplish it's task. The Subversion
developers have thoughtfully actively ensured that output by
the command line client is easy to parse.
Currently WebSVN uses svnlook for most of its work. For
WebSVN 2.0 I want to move away from svnlook and use svn.
This will have several advantages, one of them being the
ability to view remote repositories. The code is 95% working.
In order to complete this latest version, I need to pose two
change requests to the Subversion team. Hopefully there
someone out there who like's WebSVN and would like to see a
newer more powerful version.
1) This is the show stopper at the moment. When calling svn
list directory paths are terminated by a trailing /. This is
good. When calling svn log, they are not. This is bad - not
to mention inconsistant. Would it be possible to make svn
log terminate directory paths with a trailing slash? This
seems particularly important in the XML output mode, since
it's designed to be computer readable. At the moment I can't
tell which paths are directories and which are files. I'm
hoping this would be a small qnd quick fix?
If there are fears that this'll break existing code that
depends upon the XML output, perhaps at the least an
attribute could be added with the file type - dir, bin or
ascii for example. In fact, that would be great, because
I'd know automatically whether or not to display a file or
offer it for download.
2) In order to get the latest log message for a given path,
I have to call svn log -rHEAD:1 URL. This returns all the
logs, even though I'm only interested in the first one. With
a large repository this slows down browsing.
Ideally, I'd be able to call svn log -rCOMMITTED URL to get
only the log for the latest committed revision, however that
doesn't work without a working copy (strange).
I have two solutions to propose:
a) make svn log -rCOMMITTED work without a working copy
b) Offer a --limit X parameter to limit the number of
returned logs to X
I imagine that the --limit command would be generally useful
anyway? It seems limiting to me that I can't type svn log
http://server/svn/proj/tags/1.0 to see the last log entry
for a given tag without having every other log output to the
screen at the same time.
This second problem is annoying because it slows things
down, but it's not a showstopper. If someone could fix the
first problem rapidly I'd be highly appreciative.
// Webmail Oreka : http://www.oreka.com
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Wed Jun 30 22:01:13 2004