
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Subversion and DeltaV
|
263
was to have any interoperability features, support for DeltaV autoversioning would
be the best approach.
To activate autoversioning in mod_dav_svn, use the
SVNAutoversioning directive
within the httpd.conf
Location block, like so:
<Location /repos>
DAV svn
SVNPath /absolute/path/to/repository
SVNAutoversioning on
</Location>
Normally, if a generic WebDAV client attempted a PUT to a path within your reposi-
tory location, mod_dav_svn would outright reject the request. (It normally only
allows such operations on working resources within DeltaV activities.) With
SVNAutoversioning turned on, however, the server interprets the PUT request as an
internal
MKACTIVITY, CHECKOUT, PUT, and CHECKIN. A generic log message is auto-gener-
ated, and a new filesystem revision is created.
Because so many operating systems already have integrated WebDAV abilities, the
use-case for this feature borders on fantastical: imagine an office of ordinary users
running Microsoft Windows or Mac OS. Each computer mounts the Subversion
repository, which appears to be an ordinary network share. They use the server as
they always do: open files from the server, edit them, and save them back to the
server. But in this fantasy, the server is automatically versioning everything. Later on,
a sysadmin ...