It is good that you ask. We should have documented this better.
In repos-web/open/log/index.php there is a line:
$repo = '@@Repository@@'; // repository root, no trailing slash
Replace @@Repository@@ with the subversion url to your repository root.
It can be any subversion URL, both http:// and file:///. You can use
"http:" if you have public read access to the repository. If the
repository needs authentication, it is better to use the local "file:"
url. If you don't want everyone to be able to see the logs when using
"file:", protect the apache location or directory /repos-web/open/
with "Require valid-user" or something like that.
/Staffan
/Staffan
Sorry, I don't understand the error. Is it the browser that instead of
showing a page gives you a save dialog?
/Staffan
Yes, that URL or the local file:// url, see
http://groups.google.com/group/reposstyle/msg/d0bead994c6b9abb
I don't agree that log is only for local operations. Try (svn 1.4) for example
svn log --xml https://labs.repos.se/data/style/trunk/
/Staffan
Looks like you have mod_xslt installed on your server. I am very
interested to see if you can get this working. There are a couple of
mod_xslt distributions out there. The one I've tried had problems with
the inline xml-stylesheet declaration, which seems to be the same
problem that you have.
Maybe you can add a configuration directive to either disable mod_xslt
for this url, or one that sets the stylesheet path. Or you can try
"../../view/log.xml" or an absolute local path in the xml-stylesheet
declaration.
/Staffan
Interesting. Can you disable mod-xslt again? I'd like to see the xml.
I don't have a server with mod_xsl, but i might be able to find out
what xslt lib it is using so I can verify that the xsl is compatible.
/Staffan
Funny. As I wrote earlier, the mod-xslt mess is really a mess.
Here's a proof from the debian package
(http://packages.debian.org/etch/libapache2-modxslt):
"It differs from many other mod-xslt"
/Staffan
I think I've got this one figured out. The log's stylesheet
declaration is an absolute url. It starts with http, but the url is
https. Browsers regard this as cross-domain loading, which is not
allowed.
You can use the absolute url from root, or use $_SERVER['HTTPS']=='on'
in php to detect https (unless you have a proxy that fools apache to
think it is not https).
/Staffan
This is a bit strange. The source says
<?xml-stylesheet type="text/xsl" href="repos-web/view/repos.xsl"?>
I wonder why it says parse error if that's the problem. Does it work
if you start the href with a slash?
/Staffan
HTH,
Theo
now see https://svn.savannah.borgnet.us/repos-web/open/log/?target=/website/footer.html
It works !!
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
----- Original Message ----
From: Theo Barker <theo_...@yahoo.com>
To: repos...@googlegroups.com
Sent: Friday, March 28, 2008 10:26:48 PM
Subject: [repos style] Re: The log script must be configured with a root URL
There is a version that I made to work with multiple SVN repos. See https://labs.repos.se/data/style/branches/multi-repo/
HTH,
Theo
----- Original Message ----
From: Scott <sgra...@gmail.com>
To: ReposStyle <repos...@googlegroups.com>
Sent: Friday, March 28, 2008 3:46:41 PM
Subject: [repos style] Re: The log script must be configured with a root URL
<snip>
fixing the repo path to point to just 1 repo works just for this
testing on clearurlbutton
now see https://svn.savannah.borgnet.us/repos-web/open/log/?target=/website/footer.html
It works !!
YOU NEED TO SUPPORT MULTIPLE SVN REPOS and then this style sheet would
rock :)
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
____________________________________________________________________________________
OMG, Sweet deal for Yahoo! users/friends:Get A Month of Blockbuster Total Access, No Cost. W00t
http://tc.deals.yahoo.com/tc/blockbuster/text2.com
Do you mean access logging? I doubt that the repos style xsl could
have anything to do with that.
/Staffan
You can read about client side xslt at
http://en.wikipedia.org/wiki/XSL_Transformations.
All browsers I know of, except Lynx, support it. One advantage over
server side transformations is that with SVNIndexXSLT, subversion
responds with plain xml -- small, standard, can be used with AJAX.
This is why I never bothered to configure mod-xslt.
It is
<?xml-stylesheet type="text/xsl" href="/repos-web/view/repos.xsl"?>
in the xml that activates client side transformations. Without it you
would see only xml.
/Staffan
Some other solutions have been discussed on this mailing list, like
relying on HTTP_REFERER, but that is not entirely reliable either. The
minute we have a cross-browser cross-platform solution to using the
same log viewer for multiple repositories you'll have a new release of
repos style.
/Staffan
:-)
totally agree
You can see the diffs for that branch:
svn diff -r249:HEAD https://labs.repos.se/data/style/branches/multi-repo/
Or you can check out the project and build using Ant, however this is
based on the 1.3 release I think.
/Staffan
Give me until tomorrow and I'll find the time to think about the
available options and come up with an official (but probably not
optimal) solution to this.
/Staffan
On Tue, Mar 25, 2008 at 10:55 PM, Scott <sgra...@gmail.com> wrote:
>
>
>
> On Feb 21, 1:27 pm, "Staffan Olsson" <sols...@gmail.com> wrote:
> > Hi Alex,
> >
> > It is good that you ask. We should have documented this better.
> >
> > In repos-web/open/log/index.php there is a line:
> > $repo = '@@Repository@@'; // repository root, no trailing slash
> >
> > Replace @@Repository@@ with the subversion url to your repository root.
>
> Is that the working copy path?
>
> Because I am a bit confused with what to put there.
>
> If my svn is located at http://www.some.domain/svn/ then would my
> path be that?
>
> Because in your index.php I see...
> // === Print svn log --xml to response ===
> $repo = 'http://www.some.domain/svn'; // repository root, no trailing
> slash
>
> But svn log --xml ONLY works with working copies not the actual svn
> repo.
>Yes, that URL or the local file:// url, see
http://groups.google.com/group/reposstyle/msg/d0bead994c6b9abbI don't agree that log is only for local operations. Try (svn 1.4) for example
svn log --xml https://labs.repos.se/data/style/trunk//Staffan