Apache svn - how to customize rendering?
I installed svn on Ubuntu 16.04.3 LTS using the following how-to webpage: https://tecadmin.net/install-subversion-server-on-ubuntu/# Then I have migrated my CVS repositories to svn using cvs2svn and it seems like all code has come though even though my cvs modules definitions have not so I have to manually recreate the externals. When I browse the repositories with my web browser it really looks pretty basic with just a vertical one-column list of files/directories shown in browser default font. Is there some way to enhance/customize it a bit so it gets a more attractive look? With CVS we have used ViewCVS, which has a more informative display when browsing the repository also including navigation help and file info. Could Apache Svn be configured to display anything similar to what VieCVS could do back in 2005? Or do I have to install VieVC and in that case how would it affect the existing Apache Svn? -- Bo Berglund Developer in Sweden
Re: Apache svn - how to customize rendering?
On 10.12.2017 09:30, Bo Berglund wrote: > Is there some way to enhance/customize it a bit so it gets a more > attractive look? I use the SVNIndexXSLT option to point Apache to an XSL stylesheet. -Ralph
Re: Apache svn - how to customize rendering?
On Sun, 10 Dec 2017 10:50:37 +0100, Ralph Seichter wrote: >On 10.12.2017 09:30, Bo Berglund wrote: > >> Is there some way to enhance/customize it a bit so it gets a more >> attractive look? > >I use the SVNIndexXSLT option to point Apache to an XSL stylesheet. > Thanks. I have tried googling this but I only ever get to broken links when I try to find some examples. I have not enough web knowledge to be able to write something myself.. Do you know of a tutorial for this including examples? -- Bo Berglund Developer in Sweden
Re: Apache svn - how to customize rendering?
There's dupes in here no doubt - https://github.com/search?q=SVNIndexXSLT&type=Code&utf8=%E2%9C%93 - but you'll see plenty of examples (not tutorials, sorry)
Re: Apache svn - how to customize rendering?
On Sun, 10 Dec 2017 09:42:54 -0500, Paul Hammant wrote: >There's dupes in here no doubt - >https://github.com/search?q=SVNIndexXSLT&type=Code&utf8=%E2%9C%93 - but >you'll see plenty of examples (not tutorials, sorry) Thanks, but your link did not work: [quote] We could not perform this search Must include at least one user, organization, or repository You could try an advanced search. [/quote] -- Bo Berglund Developer in Sweden
Re: Apache svn - how to customize rendering?
On 10.12.2017 15:56, Bo Berglund wrote: > On Sun, 10 Dec 2017 09:42:54 -0500, Paul Hammant > wrote: > >> There's dupes in here no doubt - >> https://github.com/search?q=SVNIndexXSLT&type=Code&utf8=%E2%9C%93 - but >> you'll see plenty of examples (not tutorials, sorry) > Thanks, but your link did not work: > > [quote] > We could not perform this search > > Must include at least one user, organization, or repository > You could try an advanced search. > [/quote] Maybe try this search instead: https://www.google.com/search?q=svnindexxslt
Re: Apache svn - how to customize rendering?
(linked worked for me - specifically I clicked in my email package - gmail) Go to https://github.com, in the search box at the top, type "SVNIndexXSLT", press enter, click "code". There are 2,362 hits. Here is what you will see after that :- https://screencast.com/t/007zHNoHL - Paul
Re: Apache svn - how to customize rendering?
On 10.12.2017 16:26, Branko Čibej wrote: > On 10.12.2017 15:56, Bo Berglund wrote: >> On Sun, 10 Dec 2017 09:42:54 -0500, Paul Hammant >> wrote: >> >>> There's dupes in here no doubt - >>> https://github.com/search?q=SVNIndexXSLT&type=Code&utf8=%E2%9C%93 - but >>> you'll see plenty of examples (not tutorials, sorry) >> Thanks, but your link did not work: >> >> [quote] >> We could not perform this search >> >> Must include at least one user, organization, or repository >> You could try an advanced search. >> [/quote] > Maybe try this search instead: > > https://www.google.com/search?q=svnindexxslt You may also find this bit in the Subversion repository useful: http://svn.apache.org/repos/asf/subversion/trunk/tools/xslt/
Re: Apache svn - how to customize rendering?
> On Dec 10, 2017, at 3:30 AM, Bo Berglund wrote: > > I installed svn on Ubuntu 16.04.3 LTS using the following how-to > webpage: > https://tecadmin.net/install-subversion-server-on-ubuntu/# > > Then I have migrated my CVS repositories to svn using cvs2svn and it > seems like all code has come though even though my cvs modules > definitions have not so I have to manually recreate the externals. > > When I browse the repositories with my web browser it really looks > pretty basic with just a vertical one-column list of files/directories > shown in browser default font. Is there some way to enhance/customize > it a bit so it gets a more attractive look? > > With CVS we have used ViewCVS, which has a more informative display > when browsing the repository also including navigation help and file > info. Could Apache Svn be configured to display anything similar to > what VieCVS could do back in 2005? > > Or do I have to install VieVC and in that case how would it affect the > existing Apache Svn? > If you want any "features" like being able to view history and see diffs then you need ViewVC or a similar product. These just install alongside and co-exist with SVN, they do not replace the server. If you just want to be able to view HEAD revision of files then the built in support is fine and you can use SVNIndexXSLT to style it nicer. There are some tools out there that try to use this technique to build a ViewVC-like experience but they still require something running on the server to serve up those additional history/diff related requests. The best example I have seen is this: http://svn.code-host.net/project.html Mark >
Re: Apache svn - how to customize rendering?
Mark Phippard wrote on Sun, 10 Dec 2017 10:53 -0500: > If you want any "features" like being able to view history and see diffs then > you need ViewVC or a similar product. These just install alongside and > co-exist with SVN, they do not replace the server. > > If you just want to be able to view HEAD revision of files then the built in > support is fine and you can use SVNIndexXSLT to style it nicer. Since 1.6, the built-in renderer also supports showing history too: https://subversion.apache.org/docs/release-notes/1.8#davkeywordexpansion It's not linked from anywhere in the interface, but it works: https://svn.apache.org/repos/asf/subversion/trunk/?p=85 (Aside: I wonder whether we should add a simple to the directory index page as UI for this)
Re: Apache svn - how to customize rendering?
> > > > It's not linked from anywhere in the interface, but it works: > > https://svn.apache.org/repos/asf/subversion/trunk/?p=85 > > (Aside: I wonder whether we should add a simple to the > directory index page as UI for this) > +1
Re: Apache svn - how to customize rendering?
> On Dec 10, 2017, at 12:00 PM, Daniel Shahaf wrote: > > Mark Phippard wrote on Sun, 10 Dec 2017 10:53 -0500: >> If you want any "features" like being able to view history and see diffs >> then you need ViewVC or a similar product. These just install alongside and >> co-exist with SVN, they do not replace the server. >> >> If you just want to be able to view HEAD revision of files then the built in >> support is fine and you can use SVNIndexXSLT to style it nicer. > > Since 1.6, the built-in renderer also supports showing history too: > > https://subversion.apache.org/docs/release-notes/1.8#davkeywordexpansion > > It's not linked from anywhere in the interface, but it works: > > https://svn.apache.org/repos/asf/subversion/trunk/?p=85 > > (Aside: I wonder whether we should add a simple to the > directory index page as UI for this) I did not mean being able to view an older version of a file, I meant svn log style output. AFAIK, there is no way to see things like commit messages, or even a list of files modified in a revision, using the XSLT approach. The OP does not really specify what they are looking for, but the XSLT approach is not a viable alternative to the full breadth of what ViewVC and other similar products offer. Mark
Re: Apache svn - how to customize rendering?
On Sun, 10 Dec 2017 10:53:37 -0500, Mark Phippard wrote: >If you want any "features" like being able to view history and see >diffs then you need ViewVC or a similar product. >These just install alongside and co-exist with SVN, they do not >replace the server. Thanks, I was thinking about getting ViewVC but was afraid it would break ApacheSvn since svn is using Apache... Seeing that it installs alongside svn is reassuring. So I did this: sudo apt-get install viewvc And that worked, however I followed a how-to I found on the net which seems not to work... https://unspecified.wordpress.com/2008/06/10/viewvc/ Probably too old (I did not notice the 2008 item). So now I am stuck in the configuration stage. Then I found this: http://chschneider.eu/linux/server/apache2.shtml and was totally overwhelmed by the complexity of setting this up. I once installed ViewCVS on Windows servers back about 10 years ago (for CVS) and it was really not this complex to get running. I have yet to see anything at all via the Apache web server. -- Bo Berglund Developer in Sweden
Re: Apache svn - how to customize rendering?
Docker and ViewCVS on Github - 76 matches - https://screencast.com/t/y9GZgopQZ Though you're not interested in Docker, some of those will be terse enough to be able to learn from to apply to your own situation.
Re: Apache svn - how to customize rendering?
> On Dec 10, 2017, at 3:38 PM, Bo Berglund wrote: > > On Sun, 10 Dec 2017 10:53:37 -0500, Mark Phippard > wrote: > >> If you want any "features" like being able to view history and see >> diffs then you need ViewVC or a similar product. >> These just install alongside and co-exist with SVN, they do not >> replace the server. > > Thanks, I was thinking about getting ViewVC but was afraid it would > break ApacheSvn since svn is using Apache... > Seeing that it installs alongside svn is reassuring. > > So I did this: > sudo apt-get install viewvc > > And that worked, however I followed a how-to I found on the net which > seems not to work... > https://unspecified.wordpress.com/2008/06/10/viewvc/ > Probably too old (I did not notice the 2008 item). > > So now I am stuck in the configuration stage. > Then I found this: > http://chschneider.eu/linux/server/apache2.shtml > and was totally overwhelmed by the complexity of setting this up. > > I once installed ViewCVS on Windows servers back about 10 years ago > (for CVS) and it was really not this complex to get running. > > I have yet to see anything at all via the Apache web server. I have generally just followed the ViewVC docs: https://github.com/viewvc/viewvc/blob/master/INSTALL Mark
Re: Apache svn - how to customize rendering?
Bo Berglund wrote on Sun, 10 Dec 2017 21:38 +0100: > Thanks, I was thinking about getting ViewVC but was afraid it would > break ApacheSvn since svn is using Apache... > Seeing that it installs alongside svn is reassuring. It's possible to for multiple programs to read/serve a repository at the same time. E.g., it's possible to serve a repository using svnserve, mod_dav_svn, and viewvc simultaneously.
Checksum mismatch with 1.9.7
Hi all, I have a rather strange issue with Subversion 1.9.7 and I hope someone of you can bring me in the right direction. I'm not able to load a dump and/or svnsync to a new Subversion in version 1.9.7. I create a dump on the server running 1.8.19 and try to load it on the 1.9.7 machine. Then I get an error: svnadmin: E160004: Filesystem is corrupt svnadmin: E200014: Checksum mismatch while reading representation: expected: 3168c2eb460868be4ec2e1a62084d80f actual: 67178f4abfbb0b876a260142c15f645b I also get this error when i run "svnadmin load" with the "-M 0" trick... On another machine running Subversion 1.8.10 I can load the dump. So the dump is ok (furthermore, a "svnadmin verify" on the 1.8.19 server also runs successfully). Note that I was able to expoprt the file from this revision (Windows with TortoiseSVN) and the checksum is 3168c2eb460868be4ec2e1a62084d80f - so the "expected" checksum in the dump is ok. Ok, I was not able load load the dump - so I tried svnsync. On the same revision, the svnsync also stops: svnsync: E16: SHA1 of reps '51384 62 16385 20282 3168c2eb460868be4ec2e1a62084d80f cc1652eaf2ef8cb91769dc4fea2d327413548c3e 51384-13nc/_21' and '-1 0 934 20282 3168c2eb460868be4ec2e1a62084d80f cc1652eaf2ef8cb91769dc4fea2d327413548c3e 51384-13nc/_21' matches (cc1652eaf2ef8cb91769dc4fea2d327413548c3e) but contents differ I've searched the Mailing-List archive and came across other people having problems like this (but for them "-M 0 " did the trick). Sadly, not for me Ok... what now? Is there a bug in 1.9.7? Or is Subversion on the server side too old? Any ideas? Bye & Thanks, Michael
Checksum mismatch with 1.9.7
[At First: I've sent this post yesterday evening - but I guess it got loste somewhere because I can not see this in the mail archive - sorry if I post it double] Hi all, I have a rather strange issue with Subversion 1.9.7 and I hope someone of you can bring me in the right direction. I'm not able to load a dump and/or svnsync to a new Subversion in version 1.9.7. I've created a dump on a server running 1.8.19 and then I've tried to load it on a 1.9.7 machine. I get this error: svnadmin: E160004: Filesystem is corrupt svnadmin: E200014: Checksum mismatch while reading representation: expected: 3168c2eb460868be4ec2e1a62084d80f actual: 67178f4abfbb0b876a260142c15f645b I also get this error when i run "svnadmin load" with the "-M 0" trick... On another machine running Subversion 1.8.10 I can load the dump. So I assume the dump is ok (furthermore, a "svnadmin verify" on the 1.8.19 server also runs successfully). Note that I was able to export the file from this revision (with TortoiseSVN on Windows) and the checksum is 3168c2eb460868be4ec2e1a62084d80f - so the "expected" checksum in the dump is the right one. Ok, I was not able load load the dump - so I tried svnsync. On the same revision, the svnsync also stops: svnsync: E16: SHA1 of reps '51384 62 16385 20282 3168c2eb460868be4ec2e1a62084d80f cc1652eaf2ef8cb91769dc4fea2d327413548c3e 51384-13nc/_21' and '-1 0 934 20282 3168c2eb460868be4ec2e1a62084d80f cc1652eaf2ef8cb91769dc4fea2d327413548c3e 51384-13nc/_21' matches (cc1652eaf2ef8cb91769dc4fea2d327413548c3e) but contents differ I've searched the Mailing-List archive and came across other people having problems like this (but for them "-M 0" did the trick). Sadly, not for me Ok... what now? Is there a bug in 1.9.7? Or is Subversion on the server side too old? Any ideas? I guess I can get around this if I sync my repository on a Subversion 1.8.10 release, tar it and transfer it to the "right" destination machine running 1.9.7 (why I don't just copy the original repository? We want to set up a live mirror using svnsync...) But I'm fairly interested why I have this problems running 1.9.7 and what is the right way around it... Bye & Thanks, Michael