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

Re: Example svn-log.cgi?

From: David Summers <david_at_summersoft.fay.ar.us>
Date: 2002-01-29 08:37:34 CET

I tried that and the "svn log" command currently does not take a
repository name, it currently takes a working copy name. Now if you mean it
*SHOULD* take a repository name, then that sounds great to me. It took me a
bit to figure out how to do it the current way with svnlook and svnadmin
command.

   - David

On 29 Jan 2002, cmpilato@collab.net wrote:

> Karl Fogel <kfogel@newton.ch.collab.net> writes:
>
> Of course the following could now just be:
>
> #!/bin/sh
> echo "Content-type: text/plain"
> echo ""
> `svn log $1`;
>
> right?
>
>
> > And /usr/www/repositories/svn-log.pl is this:
> >
> > #!/usr/bin/perl
> >
> > use strict;
> >
> > my $repos = shift @ARGV;
> >
> > # Make sure we got all the arguments we wanted
> > if ((not defined $repos) or ($repos eq ''))
> > {
> > print "Usage: svn_logs.pl REPOS-PATH\n\n";
> > exit;
> > }
> >
> > # Get the youngest revision in the repository.
> > my $youngest = `svnadmin youngest $repos`;
> > chomp $youngest; # don't want carriage return
> > die ("Error using svnadmin to get youngest revision") if (not $youngest =~ /^\d/);
> >
> > while ($youngest >= 1)
> > {
> > print "--------------------------------------------------------\n";
> > print "Revision $youngest\n";
> > print `svnlook $repos rev $youngest info`;
> > print "\n";
> > $youngest--;
> > }
>

-- 
David Wayne Summers          "Linux: Because reboots are for upgrades!"
david_at_summersoft.fay.ar.us   PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint =  C0 E0 4F 50 DD A9 B6 2B  60 A1 31 7E D2 28 6D A8 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:01 2006

This is an archived mail posted to the Subversion Dev mailing list.

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