[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

super-lightweight virtual host support for svnserve

From: David Glasser <glasser_at_davidglasser.net>
Date: Thu, 24 Jul 2008 15:32:05 -0700

Quick idea: super-lightweight virtual host support for svnserve.

Currently, subversion/svnserve/serve.c(find_repos) just skips over the
given hostname.

Proposal: if you run

$ svnserve -r /svn-servers --virtual-host

then svn://my.server.org/some/repo looks for a repo at
/svn-servers/my.server.org/some/repo. You perhaps would fill your -r
path with symlinks.

The hostname would not contain slashes by definition and would be
explicitly checked to make sure it isn't "." or "..".

I suspect the patch comes in at under 30 lines, mostly command-line processing.

Seem worthwhile?


David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-25 00:32:28 CEST

This is an archived mail posted to the Subversion Dev mailing list.