You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Daniel Lohmann <da...@informatik.uni-erlangen.de> on 2005/01/23 17:01:53 UTC

svn:externals with non-absolute paths - possible?

Hi everybody,

One of the things I really do like on subversion is the svn:externals 
property which is in many ways a lot more flexible as the CVS modules 
concept. However, one point really makes me headaches: svn:externals 
requires to give an absolute URL to the external repository, which does 
not contain just the path, but also the  protocol to use and (for some 
protocols) even the username. This is bad, as different users should be 
able to access the compount project by different protocols. Take for 
instance a projectA that contains a svn:external link to another 
projectB. All  internal project team members access the repository 
using  the svn+ssh protocol, but external project team member use https 
via WebDAV. Is there any way to set the svn:external link in a way, that 
it resolves to an svn+ssh://... link for internal team members, but to a 
https://... link for external team members? Maybe using environment 
variables in the external definition?

How do you solve these kind of problems?

With kind regards

Daniel Lohmann



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn:externals with non-absolute paths - possible?

Posted by kf...@collab.net.
"Max Bowsher" <ma...@ukf.net> writes:
> See the threads "Relative externals - format debate" and "Relative
> externals - take 2" on the dev@ list (Jan 2005),
> where a fair amount of discussion on this topic has already taken place.

Thanks Max -- I've made a referral in the issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn:externals with non-absolute paths - possible?

Posted by Max Bowsher <ma...@ukf.net>.
Daniel Lohmann wrote:
> One last suggestion:

[Snip!]

See the threads "Relative externals - format debate" and "Relative 
externals - take 2" on the dev@ list (Jan 2005),
where a fair amount of discussion on this topic has already taken place.

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn:externals with non-absolute paths - possible?

Posted by Daniel Lohmann <da...@informatik.uni-erlangen.de>.
kfogel@collab.net wrote:

>[...]
>This is http://subversion.tigris.org/issues/show_bug.cgi?id=1336.
>
>We totally agree this is a shortcoming in the externals feature :-).
>There's even a patch in the issue, in fact.  I've put it in 1.5, which
>is a while away, but at least is not forever.  We're not able to
>address every issue/patch as soon as we would like, sorry for that.
>  
>
Karl,
Thanks a lot for your quick response! It's good to know that the problem 
is already discussed by the svn developers (of course, I should have 
found the already existing issue entry...) Version 1.5 is a lot more 
concrete than I dared to hope :-)

One last suggestion: Relative URLs should be possible even between 
different repositories (as long as they reside under some common folder, 
of course, otherwise there is no relation between them). If projectA and 
projectB are actually different repositories it should stille be 
possible to define something like

svn propset svn:externals ../projectB/trunk projectB 
https://server/repos/projectA/trunk

or even better, if we understand a leading / as the current repositories 
root:

svn propset svn:externals /../projectB/trunk projectB 
https://server/repos/projectA/trunk


So long

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn:externals with non-absolute paths - possible?

Posted by kf...@collab.net.
Daniel Lohmann <da...@informatik.uni-erlangen.de> writes:
> Hi everybody,
> 
> One of the things I really do like on subversion is the svn:externals
> property which is in many ways a lot more flexible as the CVS modules
> concept. However, one point really makes me headaches: svn:externals
> requires to give an absolute URL to the external repository, which
> does not contain just the path, but also the  protocol to use and (for
> some protocols) even the username. This is bad, as different users
> should be able to access the compount project by different
> protocols. Take for instance a projectA that contains a svn:external
> link to another projectB. All  internal project team members access
> the repository using  the svn+ssh protocol, but external project team
> member use https via WebDAV. Is there any way to set the svn:external
> link in a way, that it resolves to an svn+ssh://... link for internal
> team members, but to a https://... link for external team members?
> Maybe using environment variables in the external definition?
> 
> How do you solve these kind of problems?

This is http://subversion.tigris.org/issues/show_bug.cgi?id=1336.

We totally agree this is a shortcoming in the externals feature :-).
There's even a patch in the issue, in fact.  I've put it in 1.5, which
is a while away, but at least is not forever.  We're not able to
address every issue/patch as soon as we would like, sorry for that.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org