On Fri, Jul 17, 2009 at 6:24 PM, Greg Beaver<g...@chiaraquartet.net> wrote:
> Matteo Beccati wrote:
> > Lukas Kahwe Smith wrote:
> > > On 17.07.2009, at 03:04, Johannes Schlüter wrote:
> > > > On Thu, 2009-07-16 at 18:20 -0500, Greg Beaver wrote:
> > > > > I'd like to consider instead using svn:externals to pull in PEAR stuff
> > > > > directly from a STABLE branch from somewhere in the pear/ hierarchy.
> > > > > This would allow us over at PEAR to push the installation phars into
> > > > > that branch at the same time a release is made, and would also allow
> > > > > quick fixes by a quick revert to a previous revision.
> > > > >
> > > > How does this work with tagging or releases?
> > > > Currently the phar thing isn't tagged at all when building PHP releases,
> > > > but I assume the svn:externals would be copied as is and might lead to
> > > > wrong assumptions (like that a newer version was included) meaning we
> > > > make the tagging more complex or avoiding confusion.
> > > >
> > > if you svn copy .. it will copy the externals ..
> >
> > Not really: it will copy the link, not its content. At least that was my
> > experience when I managing releases for an internal project using
> > externals. What I usually did was to change the externals property to
> > point to a specific revision, e.g.
> >
> > Property svn:externals set to
> > foo -r33165 https://svn.example.com/bar
> >
> > Depending on the process it can either be done in the branch before
> > tagging or on the tag itself.
> >
> > As a result exporting a tag will consistently retrieve the same version
> > of the external resource even years after packaging.
>
> This sounds easy to forget - is it possible to script this?

Yes -- we do it in ZF as we pull in Dojo via svn:externals.

We use "svn propget" to find where the svn:externals point, and then use
"svn info" on that externals URL to determine what the current revision
is. When we build the tag, we then create a new svn:externals definition
for the new tag that pins to that specific revision.

I'll find the relevant code from our build scripts and paste it in here
if you need specifics.

-- 
Matthew Weier O'Phinney
mweierophin...@gmail.com
http://weierophinney.net/matthew/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to