Re: How do I enforce a minimum client version when hosted via httpd
From: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Thu, 7 Oct 2010 04:25:44 -0500
On Oct 7, 2010, at 03:29, Stephen Connolly wrote:
> I remember reading before about a hack/trick that allows you to ensure that the client is at least mergeinfo aware when the repository is served via Apache httpd.
There is no Apache directive for this; instead, you can write a clause in your start-commit hook script. From the start-commit.tmpl file created for you in every new repository:
# [1] REPOS-PATH (the path to this repository)
So if the third parameter passed to your start-commit hook script is empty / nonexistent, you know that client is older than 1.5 and you can take some action, such as denying the commit, if that's what you want to do.
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.