comparison content/SCM/sventon-changeset-links.md @ 0:4cd9b65e10e4

initial import of the pelican based blog
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 28 Jun 2013 08:48:58 +0200
parents
children 1d9382b0329b
comparison
equal deleted inserted replaced
-1:000000000000 0:4cd9b65e10e4
1 Title: Mainaining backwards compatability with Sventon 1.4.x changeset links
2 Date: 2010-01-11
3 Tags: Subversion, Sventon
4 Lang: en
5
6 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.
7
8 Sventon 1.4.x used URLs like this
9
10 http://sventon.local/sventon/revinfo.svn?name=REPOSITORY&revision=42
11
12 where Sventon 2.x uses the this format
13
14 http://sventon.local/sventon/repos/REPOSITORY/info?revision=42
15
16 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!
17
18 The following rewrite config rewrites the old format to the new one and forwards it to sventon:
19
20 RewriteCond %{QUERY_STRING} name=(.*)&revision=([0-9]+)
21 RewriteRule /sventon/revinfo.svn http://sventon.local/sventon/repos/%1/info?revision=%2 [L]