[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Do externals break if server moves?

From: Mark Clements <nntp_at_kennel17.co.uk>
Date: 2006-08-12 22:53:04 CEST

"Hari Kodungallur" <hkodungallur@gmail.com> wrote in message
news:71907dd90608121332k3d4d1631x99eef3eb0cd7cc8e@mail.gmail.com...
On 8/12/06, Ryan Schmidt <subversion-2006c@ryandesign.com > wrote:
On Aug 12, 2006, at 20:38, Mark Clements wrote:
> However, it occurs to me that if we move domains (e.g. to
> mydomain2.com)
> then all these old links will be broken! Is there anyway to avoid
> this,
> e.g. to use relative links, or to edit historical data after a change
> (without creating new revisions). I want to be sure that if we
> need to
> build Project1 v1.0 in a couple of years (possibly having moved
> servers)
> that all the necessary files are still available and are from the
> correct
> version.
You are correct, externals will break if the URL to the repository
changes. I am not aware of a way to avoid this. I do not know if you
can easily edit it after the fact, for example by editing the output
of svnadmin dump. Subversion does not support relative paths in
external definitions yet; it's an open feature request. Suggest that
if you change URLs, you then visit all projects where you've used
externals and update the definitions. Also suggest you pick a URL now
that's unlikely to need to change. (For example, pick a new hostname
like svn.example.com, even if you're currently hosting it on the same
machine as other things; this way you can break it off onto a
separate machine later should you wish to do so.) This also includes
deciding what server protocol you're going to use.

Ideally we would like to have the externals point to a relative path or be
able to edit the external at the server if the server moves. But until then,
you can checkout without externals (--ignore-externals), edit the
svn:externals and check-in changes, right?
------------------

The way I understand it, that will update the head, but old revisions will
still be broken. Is it possible to use a file:// URL which points to a
directory that can include the tilde (~) home-dir symbol (e.g.
file://~/repos/etc), or alternatively to a sym-linked directory (e.g.
file://home/me/repos/symlinks/etc where ~/repos/symlinks/etc points to
~/repos/etc) so that it can be repointed if the server structure changes.

- Mark Clements

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 12 22:54:05 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.