Saving a Monticello package programatically

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

Saving a Monticello package programatically

Alejandro Zuzek
Hi all,

I am having some problems while trying to save a package to a remote repository from Gemstone.

I have just created a method in the '*CM-Pharo-Compatibility' category and committed the changes. I then ran this code in topaz:

topaz 1>doit
Gofer new
        repository: (
                MCHttpRepository
                        location: '<remote repository url>'
                        user: 'glass'
                        password: 'password');
    package: 'CM-Pharo-Compatibility';
        commit: 'Saved from Gofer in GemStone'.
%

I get this error:

ERROR 2318 , a UserDefinedError occurred (error 2318), reason:halt, Working copy for CM-Pharo-Compatibility not found (UserDefinedError)

Exactly the same procedure in Pharo works as I expect (a version of CM-Pharo-Compatibility' is saved in the remote repository). Any ideas what I shold be doing differently in Gemstone?

Thanks,

Alejandro
Reply | Threaded
Open this post in threaded view
|

Re: Saving a Monticello package programatically

GLASS mailing list


On 10/6/15 8:09 PM, Alejandro Zuzek via Glass wrote:

> Hi all,
>
> I am having some problems while trying to save a package to a remote
> repository from Gemstone.
>
> I have just created a method in the '*CM-Pharo-Compatibility' category and
> committed the changes. I then ran this code in topaz:
>
> topaz 1>doit
> Gofer new
> repository: (
> MCHttpRepository
> location: '<remote repository url>'
> user: 'glass'
> password: 'password');
>     package: 'CM-Pharo-Compatibility';
> commit: 'Saved from Gofer in GemStone'.
> %
>
> I get this error:
>
> ERROR 2318 , a UserDefinedError occurred (error 2318), reason:halt, Working
> copy for CM-Pharo-Compatibility not found (UserDefinedError)
>
The error implies that the package CM-Pharo-Compatibility is not loaded
into GemStone .... If you are using tODE, you can run the following tODE
shell command to list packages known to GemStone that match a pattern:

   mc list CM-Pharo

and this command lists the dirty packages:

   mc dirty

It you share the results (ALT-SHIFT-P in the result window) with me,
we'll be able move forward from there ...

Dale
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Saving a Monticello package programatically

GLASS mailing list
In reply to this post by Alejandro Zuzek
Alejandro,

BTW, you can use the following tODE shell command to commit a package:

    mc commit <package-name> `<commit-message>`

Dale

On 10/6/15 8:09 PM, Alejandro Zuzek via Glass wrote:

> Hi all,
>
> I am having some problems while trying to save a package to a remote
> repository from Gemstone.
>
> I have just created a method in the '*CM-Pharo-Compatibility' category and
> committed the changes. I then ran this code in topaz:
>
> topaz 1>doit
> Gofer new
> repository: (
> MCHttpRepository
> location: '<remote repository url>'
> user: 'glass'
> password: 'password');
>     package: 'CM-Pharo-Compatibility';
> commit: 'Saved from Gofer in GemStone'.
> %
>
> I get this error:
>
> ERROR 2318 , a UserDefinedError occurred (error 2318), reason:halt, Working
> copy for CM-Pharo-Compatibility not found (UserDefinedError)
>
> Exactly the same procedure in Pharo works as I expect (a version of
> CM-Pharo-Compatibility' is saved in the remote repository). Any ideas what I
> shold be doing differently in Gemstone?
>
> Thanks,
>
> Alejandro
>
>
>
> --
> View this message in context: http://forum.world.st/Saving-a-Monticello-package-programatically-tp4854105.html
> Sent from the GLASS mailing list archive at Nabble.com.
> _______________________________________________
> Glass mailing list
> [hidden email]
> http://lists.gemtalksystems.com/mailman/listinfo/glass

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass