Monticello and Squeaksource+Seaside = Load silently the last version of a package ?

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

Monticello and Squeaksource+Seaside = Load silently the last version of a package ?

Frederic Pluquet-3
Hello,

Somebody knows how to load the last version of a package from Squeaksource without using the UI of Monticello, but executing only some lines of Smalltalk code ?

The code must do something like (giving a package name) :
- Check if a newer version exists on Squeaksource
- In this case, load the last version of package in the current image
 
The idea is to load the last version of a seaside application (from Squeaksource) without stopping the server (clicking a button in my seaside application).

 
Fréd

--
Frédéric Pluquet
Université Libre de Bruxelles (ULB)
Assistant


Reply | Threaded
Open this post in threaded view
|

Re: Monticello and Squeaksource+Seaside = Load silently the last version of a package ?

Edgar J. De Cleene



El 11/29/07 5:26 AM, "Frederic Pluquet" <[hidden email]> escribió:

> Hello,
>
> Somebody knows how to load the last version of a package from Squeaksource
> without using the UI of Monticello, but executing only some lines of Smalltalk
> code ?
>
> The code must do something like (giving a package name) :
> - Check if a newer version exists on Squeaksource
> - In this case, load the last version of package in the current image
>  
> The idea is to load the last version of a seaside application (from
> Squeaksource) without stopping the server (clicking a button in my seaside
> application).
>
>  
> Fréd
>
> --
> Frédéric Pluquet
> Université Libre de Bruxelles (ULB)
> Assistant

In 3.10 we use this

| repository versionName lastVersion |
repository := MCHttpRepository
                location: 'http://www.squeaksource.com/universes'
                user: ''
                password: ''.
versionName := repository readableFileNames first.
lastVersion := repository versionFromFileNamed: versionName.
lastVersion workingCopy repositoryGroup addRepository: repository.
lastVersion load

You need replace the last of path "universes" with your package name.

Edgar



Reply | Threaded
Open this post in threaded view
|

Re: Monticello and Squeaksource+Seaside = Load silently the last version of a package ?

Frederic Pluquet-3
Thanks !

Fréd

2007/11/29, Edgar J. De Cleene <[hidden email]>:



El 11/29/07 5:26 AM, "Frederic Pluquet" <[hidden email]> escribió:

> Hello,
>
> Somebody knows how to load the last version of a package from Squeaksource
> without using the UI of Monticello, but executing only some lines of Smalltalk
> code ?
>
> The code must do something like (giving a package name) :
> - Check if a newer version exists on Squeaksource
> - In this case, load the last version of package in the current image
>
> The idea is to load the last version of a seaside application (from

> Squeaksource) without stopping the server (clicking a button in my seaside
> application).
>
>
> Fréd
>
> --
> Frédéric Pluquet
> Université Libre de Bruxelles (ULB)
> Assistant

In 3.10 we use this

| repository versionName lastVersion |
repository := MCHttpRepository
                location: ' http://www.squeaksource.com/universes'
                user: ''
                password: ''.
versionName := repository readableFileNames first.
lastVersion := repository versionFromFileNamed: versionName.
lastVersion workingCopy repositoryGroup addRepository: repository.
lastVersion load

You need replace the last of path "universes" with your package name.

Edgar






--
Frédéric Pluquet
Université Libre de Bruxelles (ULB)
Assistant


Reply | Threaded
Open this post in threaded view
|

Re: Monticello and Squeaksource+Seaside = Load silently the last version of a package ?

keith1y
Frederic Pluquet wrote:

> Thanks !
>
> Fréd
>
> 2007/11/29, Edgar J. De Cleene <[hidden email]
> <mailto:[hidden email]>>:
>
>
>
>
>     El 11/29/07 5:26 AM, "Frederic Pluquet" <[hidden email]
>     <mailto:[hidden email]>> escribió:
>
>     > Hello,
>     >
>     > Somebody knows how to load the last version of a package from
>     Squeaksource
>     > without using the UI of Monticello, but executing only some
>     lines of Smalltalk
>     > code ?
>     >
>     > The code must do something like (giving a package name) :
>     > - Check if a newer version exists on Squeaksource
>     > - In this case, load the last version of package in the current
>     image
>     >
>     > The idea is to load the last version of a seaside application (from
>     > Squeaksource) without stopping the server (clicking a button in
>     my seaside
>     > application).
>     >
>     >
>
how about:

Installer squeaksource project: 'MyProject'; install: 'MyPackage'.

Keith

Reply | Threaded
Open this post in threaded view
|

Re: Monticello and Squeaksource+Seaside = Load silently the last version of a package ?

Lukas Renggli
In reply to this post by Frederic Pluquet-3
> Somebody knows how to load the last version of a package from Squeaksource
> without using the UI of Monticello, but executing only some lines of
> Smalltalk code ?

The thing is that there is no such thing as a last version (HEAD in
SVN terms) in Monticello. Monticello is a distributed versioning
system, the same package might exist at different locations and
anybody might commit forks. Check out the mailing list archive for
more information about this.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch