Subscript Out Of Bounds: 1 when commiting from Versionner

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

Subscript Out Of Bounds: 1 when commiting from Versionner

hernanmd
When commiting with Versionner in Pharo 5.0 I always have to manually override this method

KomitStagingArea>>remotes
    | result |
   
    result := self packages first remotes.
    self packages allButFirst do: [ :each |
        result := result intersection: each remotes ].
   
    ^ result collect: [ :each | each koRemote ]

to

KomitStagingArea>>remotes

    self packages isEmpty
        ifFalse: [
            | result |  
            result := self packages first remotes.
            self packages allButFirst do: [ :each |
                result := result intersection: each remotes ].
            ^ result collect: [ :each | each koRemote ] ].
    ^ Array empty.

Screenshot attached.
Is this known issue or was this reported before?

Hernan


SubscriptOutOfBounds1.jpg (78K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Subscript Out Of Bounds: 1 when commiting from Versionner

stepharo
Yes it was fix in pharo 60 and we should port it back but I forgot the
issue number



Le 27/9/16 à 21:00, Hernán Morales Durand a écrit :

> When commiting with Versionner in Pharo 5.0 I always have to manually
> override this method
>
> KomitStagingArea>>remotes
>     | result |
>
>     result := self packages first remotes.
>     self packages allButFirst do: [ :each |
>         result := result intersection: each remotes ].
>
>     ^ result collect: [ :each | each koRemote ]
>
> to
>
> KomitStagingArea>>remotes
>
>     self packages isEmpty
>         ifFalse: [
>             | result |
>             result := self packages first remotes.
>             self packages allButFirst do: [ :each |
>                 result := result intersection: each remotes ].
>             ^ result collect: [ :each | each koRemote ] ].
>     ^ Array empty.
>
> Screenshot attached.
> Is this known issue or was this reported before?
>
> Hernan
>


Reply | Threaded
Open this post in threaded view
|

Re: Subscript Out Of Bounds: 1 when commiting from Versionner

hernanmd

2016-09-28 1:29 GMT-03:00 stepharo <[hidden email]>:
Yes it was fix in pharo 60 and we should port it back but I forgot the issue number



Le 27/9/16 à 21:00, Hernán Morales Durand a écrit :

When commiting with Versionner in Pharo 5.0 I always have to manually override this method

KomitStagingArea>>remotes
    | result |

    result := self packages first remotes.
    self packages allButFirst do: [ :each |
        result := result intersection: each remotes ].

    ^ result collect: [ :each | each koRemote ]

to

KomitStagingArea>>remotes

    self packages isEmpty
        ifFalse: [
            | result |
            result := self packages first remotes.
            self packages allButFirst do: [ :each |
                result := result intersection: each remotes ].
            ^ result collect: [ :each | each koRemote ] ].
    ^ Array empty.

Screenshot attached.
Is this known issue or was this reported before?

Hernan




Reply | Threaded
Open this post in threaded view
|

Re: Subscript Out Of Bounds: 1 when commiting from Versionner

stepharo

so do you think that we should back port these two big fixes? at least 18927 I think


Le 28/9/16 à 13:48, Hernán Morales Durand a écrit :

2016-09-28 1:29 GMT-03:00 stepharo <[hidden email]>:
Yes it was fix in pharo 60 and we should port it back but I forgot the issue number



Le 27/9/16 à 21:00, Hernán Morales Durand a écrit :

When commiting with Versionner in Pharo 5.0 I always have to manually override this method

KomitStagingArea>>remotes
    | result |

    result := self packages first remotes.
    self packages allButFirst do: [ :each |
        result := result intersection: each remotes ].

    ^ result collect: [ :each | each koRemote ]

to

KomitStagingArea>>remotes

    self packages isEmpty
        ifFalse: [
            | result |
            result := self packages first remotes.
            self packages allButFirst do: [ :each |
                result := result intersection: each remotes ].
            ^ result collect: [ :each | each koRemote ] ].
    ^ Array empty.

Screenshot attached.
Is this known issue or was this reported before?

Hernan





Reply | Threaded
Open this post in threaded view
|

Re: Subscript Out Of Bounds: 1 when commiting from Versionner

hernanmd
If I understood right I think only 18927 should be back ported.

Hope it gets integrated soon, seems to me a showstopper for Metacello + Versionner.

Hernán


2016-09-28 12:47 GMT-03:00 stepharo <[hidden email]>:

so do you think that we should back port these two big fixes? at least 18927 I think


Le 28/9/16 à 13:48, Hernán Morales Durand a écrit :

2016-09-28 1:29 GMT-03:00 stepharo <[hidden email]>:
Yes it was fix in pharo 60 and we should port it back but I forgot the issue number



Le 27/9/16 à 21:00, Hernán Morales Durand a écrit :

When commiting with Versionner in Pharo 5.0 I always have to manually override this method

KomitStagingArea>>remotes
    | result |

    result := self packages first remotes.
    self packages allButFirst do: [ :each |
        result := result intersection: each remotes ].

    ^ result collect: [ :each | each koRemote ]

to

KomitStagingArea>>remotes

    self packages isEmpty
        ifFalse: [
            | result |
            result := self packages first remotes.
            self packages allButFirst do: [ :each |
                result := result intersection: each remotes ].
            ^ result collect: [ :each | each koRemote ] ].
    ^ Array empty.

Screenshot attached.
Is this known issue or was this reported before?

Hernan