Re: [Pharo-project] scripting a package backup

2011-11-21 Thread jannik.laval
On Nov 21, 2011, at 10:19 , Lukas Renggli wrote: > > > On Monday, 21 November 2011, jannik.laval wrote: > > Hi Lukas, > > > > What I need is the information stored in the Monticello objects (I do not > > know which one for now). > > I would like to do something like that: > > > > === > > Gofe

Re: [Pharo-project] scripting a package backup

2011-11-21 Thread Lukas Renggli
On Monday, 21 November 2011, jannik.laval wrote: > Hi Lukas, > > What I need is the information stored in the Monticello objects (I do not know which one for now). > I would like to do something like that: > > === > Gofer new >url: (MCSomething new: myPackage) projectUrl; >version:

Re: [Pharo-project] scripting a package backup

2011-11-21 Thread jannik.laval
Hi Lukas, What I need is the information stored in the Monticello objects (I do not know which one for now). I would like to do something like that: === Gofer new url: (MCSomething new: myPackage) projectUrl; version: currentVersion; fetch Gofer new directory: myD

Re: [Pharo-project] scripting a package backup

2011-11-18 Thread Lukas Renggli
On 18 November 2011 21:40, jannik.laval wrote: > My point is that I do not want to know the remote repository. > I just want to copy my current package on a local repository. > > When you write squeaksource: 'remote', you suppose that your package is on > squeaksource in the project named remote.

Re: [Pharo-project] scripting a package backup

2011-11-18 Thread jannik.laval
My point is that I do not want to know the remote repository. I just want to copy my current package on a local repository. When you write squeaksource: 'remote', you suppose that your package is on squeaksource in the project named remote. That is that information that I do not want to give. I

Re: [Pharo-project] scripting a package backup

2011-11-18 Thread Lukas Renggli
On 18 November 2011 16:11, jannik.laval wrote: > Yes, that is my problem ! > I want to export packages in a repository outside the package cache and with > an empty package cache. > The problem to pull the version first, is to know the url of the version. I don't get your problem! Gofer new

Re: [Pharo-project] scripting a package backup

2011-11-18 Thread jannik.laval
Yes, that is my problem ! I want to export packages in a repository outside the package cache and with an empty package cache. The problem to pull the version first, is to know the url of the version. Jannik On Nov 18, 2011, at 16:03 , Lukas Renggli wrote: > It is all relative to your package c

Re: [Pharo-project] scripting a package backup

2011-11-18 Thread Lukas Renggli
It is all relative to your package cache, so maybe you have to pull the versions first? On 18 November 2011 10:53, jannik.laval wrote: > Hi Lukas, > I tried: > > === > RPackageOrganizer packageInfoNames do:[:e | >        Gofer new >                directory: '/Users/janniklaval/Desktop/MCPackages

Re: [Pharo-project] scripting a package backup

2011-11-18 Thread jannik.laval
Hi Lukas, I tried: === RPackageOrganizer packageInfoNames do:[:e | Gofer new directory: '/Users/janniklaval/Desktop/MCPackages'; package: e; push. ] === but if the package was not modified, it does not copy the source files. Jannik On Nov 1

Re: [Pharo-project] scripting a package backup

2011-11-18 Thread Lukas Renggli
It would be trivial with Gofer: Gofer new squeaksource: 'backupproject'; package: 'P1'; package: 'P2'; package: 'P3'; push Now of course you can find your script a working script in the class GoferPush. Lukas On 18 November 2011 10:03, jannik.laval wrote: > Hi

[Pharo-project] scripting a package backup

2011-11-18 Thread jannik.laval
Hi Pharoers, I would like to backup my packages in a repository with a script. I have one constraint: I need to use Monticello (eg, not gofer or metacello). And I do not want to have a version incrementation. Does someone have any script or any way to do that ? Cheers, Jannik