
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
172
|
Chapter 8: Developer Information
Subversion requires the server name included as part of the file: URL be either
localhost or empty, and that there be no port specification. In other words, your
URLs should look like either
file://localhost/path/to/repos or file:///path/to/
repos
.
Also, be aware that Subversion’s
file: URLs cannot be used in a regular web
browser the way typical
file: URLs can. When you attempt to view a file: URL in
a regular web browser, it reads and displays the contents of the file at that location
by examining the filesystem directly. However, Subversion’s resources exist in a vir-
tual filesystem (see “Repository Layer” earlier in this chapter), and your browser will
not understand how to read that filesystem.
Your RA library here
For those who wish to access a Subversion repository using still another protocol,
that is precisely why the Repository Access Layer is modularized! Developers can
simply write a new library that implements the RA interface on one side and commu-
nicates with the repository on the other. Your new library can use existing network
protocols, or you can invent your own. You could use interprocess communication
(IPC) calls, or—let’s get crazy, shall we?—you could even implement an email-based
protocol. Subversion supplies the APIs; you supply ...