Ryan Gray | 21 May 2012 22:52

[WebSVN] ParentPath single authentication file

I could not find the functionality to point WebSVN to my single access.txt file governing repos under a
given ParentPath, so I hacked up the feature.

It makes a new config function to set the auth file for the parent path, which stores this for later. When the
parent is loaded, it just assigns the auth file to each of the repos found in the parent path.

Example use in config.php:

  $config->parentPath('/repos/foo','Foo')
  ...
  $config->useAuthenticationFileParentPath('/repos/foo/access.txt','/repos/foo');

This would assign the auth file /repos/foo/access.txt to all the repos under the parent path /repos/foo.

Admittedly, my PHP is weak, and I'm not too familiar with the WebSVN code yet, so my mods will likely be naive,
but I thought it may be useful to others.

------------------------------------------------------
http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2964135

To unsubscribe from this discussion, e-mail: [dev-unsubscribe <at> websvn.tigris.org].
Attachment (parentPathAuth.patch): application/octet-stream, 2135 bytes

Gmane