Mercurial > hg > Blog
view content/SCM/sventon-changeset-links.md @ 9:6e2bcaecf3ec
include the theme locally to avoid any dependency on the pelican-themes git repo. Those guys don't incorporate the fixes as quickly as I need plus, I already changed the theme to incorporate the juvia comments.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 01 Jul 2013 04:09:23 +0200 |
parents | 4cd9b65e10e4 |
children | 1d9382b0329b |
line wrap: on
line source
Title: Mainaining backwards compatability with Sventon 1.4.x changeset links Date: 2010-01-11 Tags: Subversion, Sventon Lang: en I recently updated [Sventon](http://www.sventon.org/) on a production system. While the update itself went quite smooth, I found a minor glitch with the URLs do display a certain changeset. Sventon 1.4.x used URLs like this http://sventon.local/sventon/revinfo.svn?name=REPOSITORY&revision=42 where Sventon 2.x uses the this format http://sventon.local/sventon/repos/REPOSITORY/info?revision=42 We send out confirmation mails con commit including the sventon URL to the changeset. So we need the old URLs to work on the new sventon. Luckily, we host everything on an apache web server, mod_rewrite to the rescue! The following rewrite config rewrites the old format to the new one and forwards it to sventon: RewriteCond %{QUERY_STRING} name=(.*)&revision=([0-9]+) RewriteRule /sventon/revinfo.svn http://sventon.local/sventon/repos/%1/info?revision=%2 [L]