Can't get Logging to work

17 views
Skip to first unread message

Charith

unread,
Jun 6, 2009, 12:22:13 AM6/6/09
to ReposStyle
Hi guys, i read all the posts in this group and I am still now able to
get logs to work for my Repos.
I have multiple repos.

here are my configurations. I would greatly appreciate it if you guys
could take a look and help me get this thing up and running.

**************************************************************
File: /open/log/index.php
**************************************************************

// === Print svn log --xml to response ===
//$repo = '@@Repository@@'; // repository root, no trailing slash
$repo = '';
$repoparent = 'file:///srv/svn';
$limit = 20; // limit log length for performance reasons, advice users
to run svn client for more entries
// === configuration done ===

**************************************************************
File: /view/log.xsl
**************************************************************
<!-- === repos style configuration === -->
<!-- static: absolute url to style application -->
<xsl:param name="static">/repo_style/</xsl:param>
<!-- cssUrl: absolute url to css folder -->
<xsl:param name="cssUrl">
<xsl:value-of select="$static"/>
style/
</xsl:param>
<!-- log viewer does not know the repository URL -->
<xsl:param name="repoUrl">javascript:history.back(1)</xsl:param>
<!-- ===== end of configuration ===== -->

**************************************************************
File: /view/repos.xsl
**************************************************************
<!-- === repos style configuration === -->
<!-- static: absolute url to style application -->
<xsl:param name="static">/repo_style/</xsl:param>
<!-- cssUrl: absolute url to css folder -->
-
<xsl:param name="cssUrl">
<xsl:value-of select="$static"/>
style/
</xsl:param>
-
<!--
logUrl: empty -> no log tool, absolute url -> enable 'history' link.
Must allow appended query param
-->
-
<xsl:param name="logUrl">
<xsl:value-of select="$static"/>
open/log/?
</xsl:param>
-
<!--
startpage: empty -> standard behaviour, absolute url -> special
handling of 'up' from trunk
-->
<xsl:param name="startpage">/</xsl:param>
-
<!--
tools: name of recognized top level folders to get css tool-class
-->
<xsl:param name="tools">/trunk/branches/tags/</xsl:param>
<!-- ===== end of configuration ===== -->
**************************************************************

Thanks guys for taking your time to debug my configurations.

solsson

unread,
Jun 7, 2009, 5:42:32 AM6/7/09
to ReposStyle
Hi,

$repoparent is just a boolean flag to tell if $repo is a parent path
or not. Try setting
$repo = 'file:///srv/svn';
$repoparent = true;

/Staffan

Charith

unread,
Jun 7, 2009, 2:38:22 PM6/7/09
to ReposStyle
Hi,

I did as you said but it still doesnt work.

when i click on Folder history in my repo, it gives me the following
error:

"Error loading stylesheet: A network error occured loading an XSLT
stylesheet:http://www.rith.ca:82/repos-web/view/log.xsl"

is this something wrong with the log.xsl configuration?

Thanks

Staffan

unread,
Jun 15, 2009, 12:11:18 PM6/15/09
to repos...@googlegroups.com
Does log.xsl exist at that location? If there is something wrong in
log.xsl you get an error saying the XSLT is invalid instead.

/Staffan

Charith

unread,
Jun 15, 2009, 7:38:32 PM6/15/09
to ReposStyle
ya sorry i changed the directory. now it finds the log.xsl file but
now it gives a different error. its not able to get the history for
the files from the svn server.
This is error I get:

svn: Unable to open an ra_local session to URL

On Jun 15, 11:11 am, Staffan <sols...@gmail.com> wrote:
> Does log.xsl exist at that location? If there is something wrong in
> log.xsl you get an error saying the XSLT is invalid instead.
>
> /Staffan
>

Charith

unread,
Jun 15, 2009, 7:39:30 PM6/15/09
to ReposStyle
sorry Staffan if I am being stupid or annoying. I just really need
this to work. Thank you Staffan for taking your time to help me with
this issue :)

On Jun 15, 11:11 am, Staffan <sols...@gmail.com> wrote:
> Does log.xsl exist at that location? If there is something wrong in
> log.xsl you get an error saying the XSLT is invalid instead.
>
> /Staffan
>

Charith

unread,
Jun 15, 2009, 7:52:56 PM6/15/09
to ReposStyle
sorry i only copied part of the error message. heres the full error:


Repository history

svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///srv/svn/djdowjones/images/
dow.jpg'

Staffan

unread,
Jun 17, 2009, 11:14:38 AM6/17/09
to repos...@googlegroups.com
What's your SVNParentPath in the <Location> block in apache?

/Staffan

Charith Jayawardana

unread,
Jun 23, 2009, 4:37:27 PM6/23/09
to repos...@googlegroups.com
I have SVNPath set to /srv/svn/Demo
I have SVNParentPath commented out.

oh another thing is that, im running multiple SVN servers off of the same subversion install.
I have a folder /srv/svn and inside that I have a Demo svn server, MyCode svn server, Projects svn server.

the settings for all these servers are in dav_svn.conf file. I have multiple <location> </location> tags. is this the proper way to do this?
--
Charith Jayawardana
www.RITH.ca

Staffan

unread,
Jun 24, 2009, 12:55:16 PM6/24/09
to repos...@googlegroups.com
If you don't use SVNParentPath set

$repo = file:///srv/svn/Demo;
$repoparent = false;

/Staffan

Jeff Patton

unread,
Jul 18, 2009, 10:15:18 PM7/18/09
to ReposStyle
First off just downloaded the package and copied over to my server and
it's wicked easy! That said, I'm soo not a php guy that it's not
funny. I did modify the $repo variable and managed to get a different
error:


Parse error: syntax error, unexpected T_VARIABLE in /home/svn/repos-
web/open/log/index.php on line 28

here is a copy of my svn conf file:

<Location /repos>
DAV svn
SVNParentPath /home/svn
SVNListParentPath On
SVNIndexXSLT "/repos-web/view/repos.xsl"
AuthType Basic
AuthName "Private SVN Repository"
AuthUserFile /etc/subversion/passwd
Require valid-user
</Location>


On Jun 24, 11:55 am, Staffan <sols...@gmail.com> wrote:
> If you don't use SVNParentPath set
>
> $repo = file:///srv/svn/Demo;
> $repoparent = false;
>
> /Staffan
>
> On Tue, Jun 23, 2009 at 10:37 PM, Charith
>
> Jayawardana<charith.jayaward...@gmail.com> wrote:
> > I have SVNPath set to /srv/svn/Demo
> > I have SVNParentPath commented out.
>
> > oh another thing is that, im running multiple SVN servers off of the same
> > subversion install.
> > I have a folder /srv/svn and inside that I have a Demo svn server, MyCode
> > svn server, Projects svn server.
>
> > the settings for all these servers are in dav_svn.conf file. I have multiple
> > <location> </location> tags. is this the proper way to do this?
>
> > On Wed, Jun 17, 2009 at 10:14 AM, Staffan <sols...@gmail.com> wrote:
>
> >> What's your SVNParentPath in the <Location> block in apache?
>
> >> /Staffan
>
> >> On Tue, Jun 16, 2009 at 1:52 AM, Charith<charith.jayaward...@gmail.com>

Staffan

unread,
Jul 23, 2009, 2:01:29 AM7/23/09
to repos...@googlegroups.com
On Sun, Jul 19, 2009 at 4:15 AM, Jeff Patton<jeffp...@gmail.com> wrote:
>
> First off just downloaded the package and copied over to my server and
> it's wicked easy! That said, I'm soo not a php guy that it's not
> funny. I did modify the $repo variable and managed to get a different
> error:
>
>
> Parse error: syntax error, unexpected T_VARIABLE in /home/svn/repos-
> web/open/log/index.php on line 28
>
> here is a copy of my svn conf file:
>
>        <Location /repos>
>                DAV svn
>                SVNParentPath /home/svn
>                SVNListParentPath On
>                SVNIndexXSLT "/repos-web/view/repos.xsl"
>                AuthType Basic
>                AuthName "Private SVN Repository"
>                AuthUserFile /etc/subversion/passwd
>                Require valid-user
>        </Location>
>
>

This is a PHP syntax error. Usually something like missing quotes or a
variable without $. I notice that i wrote the $repo value without
quotes in this thread -- could that be the error? I should have
written $repo = 'file:///srv/svn/Demo';

/Staffan
Reply all
Reply to author
Forward
0 new messages