Re-reading my last email on this topic, I find it a bit scattered, and not
Also, I've found RFC1808 "Relative URLs".
In light of that, here is a revised version.
Relative externals would be a useful feature, but there is quite a lot of
complexity in defining the extensions to the format of externals
descriptions to accomodate this.
This is because there are potentially four different kinds of relative
The examples below all consider possible externals on the hypothetical
1. Directory-relative externals.
Suppose module1 wishes to import module_common. For maximum flexibility of
access method, host, and branching/tagging, the desired externals definition
This is straightforward, and conforms to RFC1808
2. Repository-relative externals.
Suppose module1 wishes to use tagged version 1.0.0 of module_common for its
trunk development, insulating itself from possible instability of
module_common's own trunk development. For the same reasons as above, it is
now desired that the external be specified relative to the root of the
Is this syntax appropriate?:
There are two issues:
a) What about access to sibling repositories? Is this legal?:
b) This has defined the 'root' of absolute paths to be the repository root,
which means this is no longer RFC1808-conforming, and has used the '/' root
notation in a not immediately obvious way. Since operating this kind of
relativity requires svn-specific knowledge to split the URL into
to-repository and in-repository components, I feel that nothing would be
lost in departing from URL RFCs, and I propose this modification to the
Note that interestingly this doesn't have any special consequences for a
directory named 'R', as you would never use externals to refer to a
directory that was within the directory on which the svn:externals property
3. Host-relative externals.
I cannot think of a use case for host-relative externals, except possibly as
a conceptually easier if slightly less flexible alternative to reference
However, RFC1808 hands us an obvious syntax for implementing it - the '/'
notation I raised and rejected in point 2 above.
Here is the otherlib example rewritten using host-relative externals:
Note that this hardcodes the knowledge of where in the server namespace the
repositories are exposed ("/svn"), but is rather more intuitive than the
4. Scheme-relative externals.
Returning to our module1 example use cases, suppose that module1 now wishes
to use module8, which is being developed by Beta Group within the same
Both repositories are visible over both http:// and https:// - but,
whichever you use for the root checkout, you probably want to use for
RFC1808 defines a syntax for us to use:
Hopefully, you will find this email somewhat efficiently conveys what I am
thinking than my previous on this subject :-)
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Tue Jan 4 02:16:22 2005