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

Re: SVN externals - using a GUID style instead of a path?

From: Geoff Rowell <geoff.rowell_at_gmail.com>
Date: Fri, 29 Jul 2011 08:28:12 -0400

On Jul 29, 2011, at 8:17 AM, Thomas Harold <thomas-lists_at_nybeta.com> wrote:

> http://subversion.apache.org/docs/release-notes/1.5.html#externals
>
> The relative URLs being allowed in svn:externals was a huge step forward. But it still relies on the source path not ever changing.
>
> For example:
>
> /repos/zag foo/bar1
>
> Which is fine as long as "zag" never changes its name.
>
> What if there was some sort of a GUID value for each object, created the first time that the object is added to the repository, that could then be used as the source URL?
>
> /repos/GUID:4e1243bd22c66e76c2ba9eddc1f91394e57f9f83 foo/bar1
>
> Which would hopefully track /repos/zag as it changes from /repos/zag to /repos/zig to /repos/forgreatjustice.
>
> (I suspect this all ties in with the copy/rename issue, which is itself a rather hairy topic.)
I wouldn't use/suggest this. It'd be difficult to determine where a GUID pointed, once created.

> Is this also a moot point if you use the "pegged revision" style of svn:externals where you prefix the property value with "-r ####"? That even if "/repos/zag" changes to "/repos/zig" it won't matter because you're pegging to a revision before the name change occured?
Peg revision should be indicated by "@####", appended to the repos path. I'd prefer that syntax.
Received on 2011-07-29 14:29:46 CEST

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.