Comment 8 for bug 481748

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 481748] Re: revspecs in recipes should be part of the URL

On Tue, 27 Apr 2010 02:34:53 -0000, Aaron Bentley <email address hidden> wrote:
> You can already specify a url as part of a revspec, e.g. "bzr branch -r
> 10:lp:bzrtools bzr.dev bzt" branches from bzrtools, not bzr.dev.
> Couldn't you use that syntax in bzr-builder?

Kind of ugly, but yes, it would be possible in theory. Parsing
10:lp:bzrtools and distinguishing fromm lp:bzrtools wouldn't be easy,
but I imagine it's easy to distinguish using bzr.

> And wouldn't it be infinite recursion if revspecs could contain urls
> which could contain revspecs, which...

Yes, but it would require someone to write an infinitely long string to
cause bzr-builder to loop forever. You can't refer to an outer part from
an inner part as far as I know, so I don't think there's any potential
for abuse.

Thanks,

James