Copying a baseline or a version under a new name?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Copying a baseline or a version under a new name?

Alexandre Bergel-5
Hi!

Is there a way to realize such an operation?
I checked the toolbox, but I haven't seen.

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: Copying a baseline or a version under a new name?

Miguel Cobá
Just saving the method with other name.

El mié, 16-02-2011 a las 18:42 -0300, Alexandre Bergel escribió:
> Hi!
>
> Is there a way to realize such an operation?
> I checked the toolbox, but I haven't seen.
>
> Cheers,
> Alexandre

--
Miguel Cobá
http://twitter.com/MiguelCobaMtz
http://miguel.leugim.com.mx



Reply | Threaded
Open this post in threaded view
|

Re: Copying a baseline or a version under a new name?

Alexandre Bergel-5
> Just saving the method with other name.

I would like to do it programmatically.
Consider the baseline:

-=-=-=-=-=-=-=-=-=-=-=-=
baseline11: spec
        <version: '1.1-baseline'>

        spec for: #'common' do: [
                spec blessing: #'baseline'.
                spec repository: 'http://www.squeaksource.com/MetacelloBrowser'.
                spec project: 'Metacello' with: [
                                spec
                                        className: 'ConfigurationOfMetacello';
                                        versionString: '1.0-beta.28-ea.5';
                                        repository: 'http://seaside.gemstone.com/ss/metacello' ].
                spec package: 'MetacelloBrowser'.
                spec group: 'default' with: #('MetacelloBrowser' ).].
-=-=-=-=-=-=-=-=-=-=-=-=

If I want to copy it under 1.2-baseline, the selector has to be changed, and the pragma attribute.
I was wondering whether there is a solution for this.

Cheers,
Alexandre

>
> El mié, 16-02-2011 a las 18:42 -0300, Alexandre Bergel escribió:
>> Hi!
>>
>> Is there a way to realize such an operation?
>> I checked the toolbox, but I haven't seen.
>>
>> Cheers,
>> Alexandre
>
> --
> Miguel Cobá
> http://twitter.com/MiguelCobaMtz
> http://miguel.leugim.com.mx
>
>
>
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: Copying a baseline or a version under a new name?

Dale Henrichs
In reply to this post by Alexandre Bergel-5
On 02/16/2011 01:42 PM, Alexandre Bergel wrote:
> Hi!
>
> Is there a way to realize such an operation?
> I checked the toolbox, but I haven't seen.
>
> Cheers,
> Alexandre

Alexandre,

I think that MetacelloToolBox
class>>createBaseline:for:from:description: should do the trick...

Dale
Reply | Threaded
Open this post in threaded view
|

Re: Copying a baseline or a version under a new name?

Alexandre Bergel-5
Ok, thanks.

Cheers,
Alexandre


On 16 Feb 2011, at 19:08, Dale Henrichs wrote:

> On 02/16/2011 01:42 PM, Alexandre Bergel wrote:
>> Hi!
>>
>> Is there a way to realize such an operation?
>> I checked the toolbox, but I haven't seen.
>>
>> Cheers,
>> Alexandre
>
> Alexandre,
>
> I think that MetacelloToolBox class>>createBaseline:for:from:description: should do the trick...
>
> Dale
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: Copying a baseline or a version under a new name?

Alexandre Bergel-5
In reply to this post by Dale Henrichs
> I think that MetacelloToolBox class>>createBaseline:for:from:description: should do the trick...


It does perfectly

Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.