[chora] Re: PHP script for viewing subversion repositories

Jay Freeman (saurik) saurik at saurik.com
Wed Aug 27 03:18:13 PDT 2003


OK, actually... I have a much MUCH better version of that patch :).

ftp://ftp.saurik.com/pub/chora/chora-svn-2b

This one manages to get rid of the usages of svnadmin and svnlook (and
thereby can generate the log pages with a single svn call rather than
[number of log entries + 1]). This does have an issue with what I believe is
a bug in 'svn log' so I can't honor CVSLIB_LOG_QUICK as well as I should due
to '-r HEAD' returning an empty log if the item wasn't actually changed in
the HEAD revision. I'll see if it's still in the latest version of svn soon
and if it is I'll report it to them. I do at least bail on the output
parsing, though.

Note that this change _also_ has a really, really cool side effect. You now
specify the "location" for the repository as a URL to the repository. So it
might be file:///vcs/svn/myrepos if it's locally, but now you can do
http://svn.collab.net/repos/svn and have it just feed off the WebDAV.

For a sample of this:

http://mail.saurik.com/horde/chora/cvs.php/?rt=Subversion

This is the Subversion peoples' repository, fed with this configuration:

$sourceroots['Subversion'] = array(
    'name' => 'Subversion',
    'location' => 'http://svn.collab.net/repos/svn',
    'title' => 'A Compelling Replacement for CVS',
    'type' => 'svn'
);

Sincerely,
Jay Freeman (saurik)
saurik at saurik.com

----- Original Message -----
From: "Jay Freeman (saurik)" <saurik at saurik.com>
To: "Chuck Hagenbuch" <chuck at horde.org>
Cc: <wiz at groupnetwork.com>; <chora at lists.horde.org>; <redoz at redoz.com>
Sent: Wednesday, August 27, 2003 1:32 AM
Subject: Re: [chora] Re: PHP script for viewing subversion repositories


> Chuck:
>
> OH, I forgot I left bad default locations for the svn binaries :). I have
> them installed to a really, really weird place....
>
> A few bugs were added in the mild refactoring. You can find a patch
against
> the current HEAD here:
>
> ftp://ftp.saurik.com/pub/chora/chora-svn-2
>
> A note may have to be added somewhere that the chora directory needs to be
> writable by the web server for diffs to work (the svn client actually
> downloads both copies there and then diffs them locally)....
>
> I also figured out a better way to do the file checkouts such that I no
> longer need wget or the svnbase parameter (I just use the new, at least,
new
> since I wrote this patch, hehe, 'svn cat' command), which makes the
> configuration somewhat easier as you only need to have file access to the
> repository and not web access as well.
>
> Sincerely,
> Jay Freeman (saurik)
> saurik at saurik.com
>
> ----- Original Message -----
> From: "Chuck Hagenbuch" <chuck at horde.org>
> To: "Jay Freeman (saurik)" <saurik at saurik.com>
> Cc: <chora at lists.horde.org>; <redoz at redoz.com>; <wiz at groupnetwork.com>
> Sent: Tuesday, August 26, 2003 10:55 PM
> Subject: Re: [chora] Re: PHP script for viewing subversion repositories
>
>
> > Quoting "Jay Freeman (saurik)" <saurik at saurik.com>:
> >
> > > OK, here's the first version of my patch against HEAD (at least, HEAD
as
> of
> > > a few hours ago...).
> >
> > Impressive - I applied that and it worked, no conflicts, nothing (well,
I
> had to
> > update my conf files. duh).
> >
> > So, I've committed the initial support. *Please* take a crack at it with
> both
> > CVS and Subversion, since I started removing CVS-specific variables and
> such
> > along with committing the patch.
> >
> > And thanks!
> >
> > -chuck
> >
> > --
> > Charles Hagenbuch, <chuck at horde.org>
> > They're just looking at a wall of meat.
>
>
> --
> Chora mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: chora-unsubscribe at lists.horde.org
>



More information about the chora mailing list