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 |
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 |
Thanks !
Fréd
2007/11/29, Edgar J. De Cleene <[hidden email]>:
-- Frédéric Pluquet Université Libre de Bruxelles (ULB) Assistant |
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). > > > > > Installer squeaksource project: 'MyProject'; install: 'MyPackage'. Keith |
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 |
Free forum by Nabble | Edit this page |