Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
April 2014
- 1108 messages
Re: [Pharo-dev] Fast way to load package form github
by Johan Brichau
On 26 Apr 2014, at 16:46, GOUBIER Thierry <thierry.goubier(a)cea.fr> wrote:
> That said, if you found a way to refer a specific commit via github://, I'd really like to know how :)
In metacello, you can do it [1,2]:
github:// <github user> / <github project> [ : <version identifier> ] [ / <repository path> ]
Did I misunderstand your question?
cheers
Johan
[1] https://github.com/dalehenrich/metacello-work/blob/master/docs/GettingStart…
[2] https://github.com/dalehenrich/metacello-work/blob/master/docs/MetacelloScr…
April 27, 2014
Re: [Pharo-dev] Fast way to load package form github
by Serge Stinckwich
Thierry maybe you could start to write a chapter for Pharo for Entreprise that describe completly the git workfkow for Pharo.
Envoyé de mon iPhone
> Le 26 avr. 2014 à 19:32, GOUBIER Thierry <thierry.goubier(a)cea.fr> a écrit :
>
> Hi François,
>
> with gitfiletree://, there isn't any real place describing a multi-developper workflow because it is designed to work along existing workflows... as much as possible.
>
> In short, you work like you used to do in git, and gitfiletree ensures that the commit are properly made, that you have access to your development history (your true development history: the git one), and that pushes and pulls are made as painless as possible.
>
> After, you just manage your git the way you like it. Branches, merging, one branch per developper, whatever: gitfiletree:// will ensure that what you see inside Pharo is what you have done in git, and that what you do in Pharo is properly committed to git.
>
> Now, the bad thing: git merge conflicts :( When merging packages under git, some files will regularly(allways :() conflict: the version history of the package and the method properties. Whatever way you resolve those conflicts, gitfiletree:// will cope because it never reads them, but, still, having conflicts in git isn't cool.
>
> We have a better integration coming, through Max Leske work on integrating libgit to Pharo, and we will be able to solve some of the issues above ;)
>
> Thierry
>
>
> De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de François Stephany [tulipe.moutarde(a)gmail.com]
> Envoyé : samedi 26 avril 2014 19:06
> Ã : Pharo Development List
> Objet : Re: [Pharo-dev] Fast way to load package form github
>
> I'm a bit lost of what is currently possible to do with git in Pharo. Is there a place where you describe your workflow in a multi-developer environment?
>
> We currently use git flow[1] for our iOS, Android and Rails apps. We would love to use the same for Pharo. What we are doing now is using a filetree repository under a src/ directory sitting next to the image. We use versionner to save all our packages in the filetree tree and then we `git commit/push`.
>
> It was working fine while I was alone but we are now two developers working on this and I do not feel confident about this flow; merging filetree tree in CLI doesn't sound like a good idea. probably not be practical.
>
> The second developer is working on this since yesterday so we haven't yet decided how we gonna handle this.
>
> I would love to hear from people working with git and Pharo.
>
>
> [1] http://nvie.com/posts/a-successful-git-branching-model/
>
>
>> On Sat, Apr 26, 2014 at 4:46 PM, GOUBIER Thierry <thierry.goubier(a)cea.fr> wrote:
>> Yuri,
>>
>> pure filetree will only allow you access to the latest version (HEAD) of the repository (and will only match if you load that precise version number as stored in the package metadata or if you don't specify a version number). You have to change the commit ID (and branch) via git clone, git checkout and git checkout -b before.
>>
>> github:// urls may be able to select a specific commit ID, but I don't know how. You can select the branch, however. Again, if you specify a version number for your package with a github:// url, the metadata of your package has to agree with you or it will refuse to load (you are able to see only the latest version of the package).
>>
>> gitfiletree:// urls allows you to select the branch and any version visible in the git history. Read-only gitfiletree:// urls reduce the git history to one commit, so all versions are listed as .1. (Note that gitfiletree:// urls with https are read-only).
>>
>> That said, if you found a way to refer a specific commit via github://, I'd really like to know how :)
>>
>> Thierry
>> ________________________________________
>> De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com]
>> Envoyé : samedi 26 avril 2014 12:11
>> Ã : Pharo Development List
>> Objet : Re: [Pharo-dev] Fast way to load package form github
>>
>> Do you know how to specify versions with pure filetree? I know that I can specify commit SHA or branch in URL, but can I somehow redefine version for a version definition?
>>
>> Uko
>>
>> On 26 Apr 2014, at 11:06, GOUBIER Thierry <thierry.goubier(a)cea.fr> wrote:
>>
>> > Yuri,
>> >
>> > I think the best would be a github:// url in a configuration.
>> >
>> > Shortest is something like:
>> >
>> > Gofer new
>> > url: 'http://smalltalkhub.com/mc/Yuri/ProjectOfYuri/main/';
>> > configurationOf: 'ProjectOfYuri';
>> > loadStable
>> >
>> > (with the github:// url inside ConfigurationOfProjectOfYuri)
>> >
>> > Note that I have added back https access to github in gitfiletree, but, still, it implies OSProcess and git command line access (but no need to register on github.com)
>> >
>> > Thierry
>> > ________________________________________
>> > De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com]
>> > Envoyé : samedi 26 avril 2014 09:34
>> > Ã : Pharo Development List
>> > Objet : Re: [Pharo-dev] Fast way to load package form github
>> >
>> > Yes, but this requires user to clone the repository, this is not as fast as just Gofer with Monticello. I know that there is a support for github:// URIs in Metacello, but as far as I remember they donât work in Gofer.
>> >
>> > Uko
>> >
>> > On 26 Apr 2014, at 09:25, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>> >
>> >> Gofer with a filetree:// URL as package ?
>> >>
>> >> Using the Monticello UI Tool you can just add a repo, select filetree as type and load any package.
>> >>
>> >> On 26 Apr 2014, at 09:21, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
>> >>
>> >>> Hi guys, sorry if there was already this question, but is there a fast way to load a package from github (saved with filetree)? Iâm looking for some way to tell people: execute âthisâ and you will have my package in your image.
>> >>>
>> >>> Cheers
>> >>> Uko
>> >>
>> >>
>> >
>> >
>> >
>
April 26, 2014
Re: [Pharo-dev] Fast way to load package form github
by GOUBIER Thierry
Hi François,
with gitfiletree://, there isn't any real place describing a multi-developper workflow because it is designed to work along existing workflows... as much as possible.
In short, you work like you used to do in git, and gitfiletree ensures that the commit are properly made, that you have access to your development history (your true development history: the git one), and that pushes and pulls are made as painless as possible.
After, you just manage your git the way you like it. Branches, merging, one branch per developper, whatever: gitfiletree:// will ensure that what you see inside Pharo is what you have done in git, and that what you do in Pharo is properly committed to git.
Now, the bad thing: git merge conflicts :( When merging packages under git, some files will regularly(allways :() conflict: the version history of the package and the method properties. Whatever way you resolve those conflicts, gitfiletree:// will cope because it never reads them, but, still, having conflicts in git isn't cool.
We have a better integration coming, through Max Leske work on integrating libgit to Pharo, and we will be able to solve some of the issues above ;)
Thierry
________________________________
De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de François Stephany [tulipe.moutarde(a)gmail.com]
Envoyé : samedi 26 avril 2014 19:06
à : Pharo Development List
Objet : Re: [Pharo-dev] Fast way to load package form github
I'm a bit lost of what is currently possible to do with git in Pharo. Is there a place where you describe your workflow in a multi-developer environment?
We currently use git flow[1] for our iOS, Android and Rails apps. We would love to use the same for Pharo. What we are doing now is using a filetree repository under a src/ directory sitting next to the image. We use versionner to save all our packages in the filetree tree and then we `git commit/push`.
It was working fine while I was alone but we are now two developers working on this and I do not feel confident about this flow; merging filetree tree in CLI doesn't sound like a good idea. probably not be practical.
The second developer is working on this since yesterday so we haven't yet decided how we gonna handle this.
I would love to hear from people working with git and Pharo.
[1] http://nvie.com/posts/a-successful-git-branching-model/
On Sat, Apr 26, 2014 at 4:46 PM, GOUBIER Thierry <thierry.goubier(a)cea.fr<mailto:thierry.goubier@cea.fr>> wrote:
Yuri,
pure filetree will only allow you access to the latest version (HEAD) of the repository (and will only match if you load that precise version number as stored in the package metadata or if you don't specify a version number). You have to change the commit ID (and branch) via git clone, git checkout and git checkout -b before.
github:// urls may be able to select a specific commit ID, but I don't know how. You can select the branch, however. Again, if you specify a version number for your package with a github:// url, the metadata of your package has to agree with you or it will refuse to load (you are able to see only the latest version of the package).
gitfiletree:// urls allows you to select the branch and any version visible in the git history. Read-only gitfiletree:// urls reduce the git history to one commit, so all versions are listed as .1. (Note that gitfiletree:// urls with https are read-only).
That said, if you found a way to refer a specific commit via github://, I'd really like to know how :)
Thierry
________________________________________
De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org<mailto:pharo-dev-bounces@lists.pharo.org>] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com<mailto:yuriy.tymchuk@me.com>]
Envoyé : samedi 26 avril 2014 12:11
à : Pharo Development List
Objet : Re: [Pharo-dev] Fast way to load package form github
Do you know how to specify versions with pure filetree? I know that I can specify commit SHA or branch in URL, but can I somehow redefine version for a version definition?
Uko
On 26 Apr 2014, at 11:06, GOUBIER Thierry <thierry.goubier(a)cea.fr<mailto:thierry.goubier@cea.fr>> wrote:
> Yuri,
>
> I think the best would be a github:// url in a configuration.
>
> Shortest is something like:
>
> Gofer new
> url: 'http://smalltalkhub.com/mc/Yuri/ProjectOfYuri/main/';
> configurationOf: 'ProjectOfYuri';
> loadStable
>
> (with the github:// url inside ConfigurationOfProjectOfYuri)
>
> Note that I have added back https access to github in gitfiletree, but, still, it implies OSProcess and git command line access (but no need to register on github.com<http://github.com>)
>
> Thierry
> ________________________________________
> De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org<mailto:pharo-dev-bounces@lists.pharo.org>] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com<mailto:yuriy.tymchuk@me.com>]
> Envoyé : samedi 26 avril 2014 09:34
> Ã : Pharo Development List
> Objet : Re: [Pharo-dev] Fast way to load package form github
>
> Yes, but this requires user to clone the repository, this is not as fast as just Gofer with Monticello. I know that there is a support for github:// URIs in Metacello, but as far as I remember they donât work in Gofer.
>
> Uko
>
> On 26 Apr 2014, at 09:25, Sven Van Caekenberghe <sven(a)stfx.eu<mailto:sven@stfx.eu>> wrote:
>
>> Gofer with a filetree:// URL as package ?
>>
>> Using the Monticello UI Tool you can just add a repo, select filetree as type and load any package.
>>
>> On 26 Apr 2014, at 09:21, Yuriy Tymchuk <yuriy.tymchuk(a)me.com<mailto:yuriy.tymchuk@me.com>> wrote:
>>
>>> Hi guys, sorry if there was already this question, but is there a fast way to load a package from github (saved with filetree)? Iâm looking for some way to tell people: execute âthisâ and you will have my package in your image.
>>>
>>> Cheers
>>> Uko
>>
>>
>
>
>
April 26, 2014
Re: [Pharo-dev] [Inspiration] Toward a better programming
by Sven Van Caekenberghe
On 29 Mar 2014, at 11:31, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
> | input |
> input := #(2 4 4 4 5 5 7 9).
> (((input - input average) raisedTo: 2) sum / (input size - 1)) sqrt.
Shorter, simpler using #squared :
| input |
input := #(2 4 4 4 5 5 7 9).
((input - input average) squared sum / (input size - 1)) sqrt.
I just found out that we already have #stdev in the 3.0 image :
#(2 4 4 4 5 5 7 9) stdev.
;-)
April 26, 2014
Re: [Pharo-dev] Fast way to load package form github
by Alexandre Bergel
+1
It would be great to hear about this at ESUG
Alexandre
> Le 26-04-2014 à 14:06, François Stephany <tulipe.moutarde(a)gmail.com> a écrit :
>
> I'm a bit lost of what is currently possible to do with git in Pharo. Is there a place where you describe your workflow in a multi-developer environment?
>
> We currently use git flow[1] for our iOS, Android and Rails apps. We would love to use the same for Pharo. What we are doing now is using a filetree repository under a src/ directory sitting next to the image. We use versionner to save all our packages in the filetree tree and then we `git commit/push`.
>
> It was working fine while I was alone but we are now two developers working on this and I do not feel confident about this flow; merging filetree tree in CLI doesn't sound like a good idea. probably not be practical.
>
> The second developer is working on this since yesterday so we haven't yet decided how we gonna handle this.
>
> I would love to hear from people working with git and Pharo.
>
>
> [1] http://nvie.com/posts/a-successful-git-branching-model/
>
>
>> On Sat, Apr 26, 2014 at 4:46 PM, GOUBIER Thierry <thierry.goubier(a)cea.fr> wrote:
>> Yuri,
>>
>> pure filetree will only allow you access to the latest version (HEAD) of the repository (and will only match if you load that precise version number as stored in the package metadata or if you don't specify a version number). You have to change the commit ID (and branch) via git clone, git checkout and git checkout -b before.
>>
>> github:// urls may be able to select a specific commit ID, but I don't know how. You can select the branch, however. Again, if you specify a version number for your package with a github:// url, the metadata of your package has to agree with you or it will refuse to load (you are able to see only the latest version of the package).
>>
>> gitfiletree:// urls allows you to select the branch and any version visible in the git history. Read-only gitfiletree:// urls reduce the git history to one commit, so all versions are listed as .1. (Note that gitfiletree:// urls with https are read-only).
>>
>> That said, if you found a way to refer a specific commit via github://, I'd really like to know how :)
>>
>> Thierry
>> ________________________________________
>> De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com]
>> Envoyé : samedi 26 avril 2014 12:11
>> Ã : Pharo Development List
>> Objet : Re: [Pharo-dev] Fast way to load package form github
>>
>> Do you know how to specify versions with pure filetree? I know that I can specify commit SHA or branch in URL, but can I somehow redefine version for a version definition?
>>
>> Uko
>>
>> On 26 Apr 2014, at 11:06, GOUBIER Thierry <thierry.goubier(a)cea.fr> wrote:
>>
>> > Yuri,
>> >
>> > I think the best would be a github:// url in a configuration.
>> >
>> > Shortest is something like:
>> >
>> > Gofer new
>> > url: 'http://smalltalkhub.com/mc/Yuri/ProjectOfYuri/main/';
>> > configurationOf: 'ProjectOfYuri';
>> > loadStable
>> >
>> > (with the github:// url inside ConfigurationOfProjectOfYuri)
>> >
>> > Note that I have added back https access to github in gitfiletree, but, still, it implies OSProcess and git command line access (but no need to register on github.com)
>> >
>> > Thierry
>> > ________________________________________
>> > De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com]
>> > Envoyé : samedi 26 avril 2014 09:34
>> > Ã : Pharo Development List
>> > Objet : Re: [Pharo-dev] Fast way to load package form github
>> >
>> > Yes, but this requires user to clone the repository, this is not as fast as just Gofer with Monticello. I know that there is a support for github:// URIs in Metacello, but as far as I remember they donât work in Gofer.
>> >
>> > Uko
>> >
>> > On 26 Apr 2014, at 09:25, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>> >
>> >> Gofer with a filetree:// URL as package ?
>> >>
>> >> Using the Monticello UI Tool you can just add a repo, select filetree as type and load any package.
>> >>
>> >> On 26 Apr 2014, at 09:21, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
>> >>
>> >>> Hi guys, sorry if there was already this question, but is there a fast way to load a package from github (saved with filetree)? Iâm looking for some way to tell people: execute âthisâ and you will have my package in your image.
>> >>>
>> >>> Cheers
>> >>> Uko
>> >>
>> >>
>> >
>> >
>> >
>
April 26, 2014
Re: [Pharo-dev] Fast way to load package form github
by François Stephany
I'm a bit lost of what is currently possible to do with git in Pharo. Is
there a place where you describe your workflow in a multi-developer
environment?
We currently use git flow[1] for our iOS, Android and Rails apps. We would
love to use the same for Pharo. What we are doing now is using a filetree
repository under a src/ directory sitting next to the image. We use
versionner to save all our packages in the filetree tree and then we `git
commit/push`.
It was working fine while I was alone but we are now two developers working
on this and I do not feel confident about this flow; merging filetree tree
in CLI doesn't sound like a good idea. probably not be practical.
The second developer is working on this since yesterday so we haven't yet
decided how we gonna handle this.
I would love to hear from people working with git and Pharo.
[1] http://nvie.com/posts/a-successful-git-branching-model/
On Sat, Apr 26, 2014 at 4:46 PM, GOUBIER Thierry <thierry.goubier(a)cea.fr>wrote:
> Yuri,
>
> pure filetree will only allow you access to the latest version (HEAD) of
> the repository (and will only match if you load that precise version number
> as stored in the package metadata or if you don't specify a version
> number). You have to change the commit ID (and branch) via git clone, git
> checkout and git checkout -b before.
>
> github:// urls may be able to select a specific commit ID, but I don't
> know how. You can select the branch, however. Again, if you specify a
> version number for your package with a github:// url, the metadata of your
> package has to agree with you or it will refuse to load (you are able to
> see only the latest version of the package).
>
> gitfiletree:// urls allows you to select the branch and any version
> visible in the git history. Read-only gitfiletree:// urls reduce the git
> history to one commit, so all versions are listed as .1. (Note that
> gitfiletree:// urls with https are read-only).
>
> That said, if you found a way to refer a specific commit via github://,
> I'd really like to know how :)
>
> Thierry
> ________________________________________
> De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy
> Tymchuk [yuriy.tymchuk(a)me.com]
> Envoyé : samedi 26 avril 2014 12:11
> Ã : Pharo Development List
> Objet : Re: [Pharo-dev] Fast way to load package form github
>
> Do you know how to specify versions with pure filetree? I know that I can
> specify commit SHA or branch in URL, but can I somehow redefine version for
> a version definition?
>
> Uko
>
> On 26 Apr 2014, at 11:06, GOUBIER Thierry <thierry.goubier(a)cea.fr> wrote:
>
> > Yuri,
> >
> > I think the best would be a github:// url in a configuration.
> >
> > Shortest is something like:
> >
> > Gofer new
> > url: 'http://smalltalkhub.com/mc/Yuri/ProjectOfYuri/main/';
> > configurationOf: 'ProjectOfYuri';
> > loadStable
> >
> > (with the github:// url inside ConfigurationOfProjectOfYuri)
> >
> > Note that I have added back https access to github in gitfiletree, but,
> still, it implies OSProcess and git command line access (but no need to
> register on github.com)
> >
> > Thierry
> > ________________________________________
> > De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy
> Tymchuk [yuriy.tymchuk(a)me.com]
> > Envoyé : samedi 26 avril 2014 09:34
> > Ã : Pharo Development List
> > Objet : Re: [Pharo-dev] Fast way to load package form github
> >
> > Yes, but this requires user to clone the repository, this is not as fast
> as just Gofer with Monticello. I know that there is a support for github://
> URIs in Metacello, but as far as I remember they donât work in Gofer.
> >
> > Uko
> >
> > On 26 Apr 2014, at 09:25, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
> >
> >> Gofer with a filetree:// URL as package ?
> >>
> >> Using the Monticello UI Tool you can just add a repo, select filetree
> as type and load any package.
> >>
> >> On 26 Apr 2014, at 09:21, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
> >>
> >>> Hi guys, sorry if there was already this question, but is there a fast
> way to load a package from github (saved with filetree)? Iâm looking for
> some way to tell people: execute âthisâ and you will have my package in
> your image.
> >>>
> >>> Cheers
> >>> Uko
> >>
> >>
> >
> >
> >
>
>
>
>
April 26, 2014
Re: [Pharo-dev] Modifications to be integrated in Pharo 3.0 VM
by GOUBIER Thierry
Nicolas,
I was thinking about it and I ended up with this :
If in repository A, I have packages B and C, as well as the C library named libY, in my branch dev-thierry, then if I merge package B from dev-thierry and master, then:
- This is a merge for package B,
- but, for git, this isn't a merge from the combination of package B, C and libY; this is a kind of cherry picking (or I'm not sure what it is :( ).
I already have an idea of how it would be difficult to make Monticello / gitfiletree recognize that the MC merge is coming from two different branches of the git repo (and not from merging from git and a smalltalkhub repo), but even then, at the git level, making that a merge? It isn't; it's something else, an intermediate merge (or kind of).
Now, what could work is something like :
- git mergetool pharo
And then a gui in pharo could:
- let us resolve all conflicts the usual way for git users (aka meld)
- translate all packages related conflicts into the right operations
What do you think?
Thierry
________________________________
De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Nicolas Cellier [nicolas.cellier.aka.nice(a)gmail.com]
Envoyé : vendredi 25 avril 2014 19:44
à : Pharo Development List
Objet : Re: [Pharo-dev] Modifications to be integrated in Pharo 3.0 VM
2014-04-25 17:38 GMT+02:00 GOUBIER Thierry <thierry.goubier(a)cea.fr<mailto:thierry.goubier@cea.fr>>:
Hi Nicolas,
from what you describe (double merge: one in git, one in MC), I wonder if my decision to maintain compatibility between gitfiletree and FileTree by writing the metadata (version / methodProperties) in gitfiletree is a good thing?
Thierry
Very good question indeed.
This is spoiling the efficiency of git for merging...
I think that the answer is yes though, because not every one is using git (think Eliot's branch).
Esteban is not publishing the MC packages back on SmalltalkHub for nothing.
Those MC package would not be usable if they loosed their history, and I'm not sure that we are ready to loose that...
Yet, resolving the (real code) merge conflicts in an external tool does not feel so cool to me, I'd like to specify git mergetool --pharo ;)
Another way would be to not attempt a merge at all via git, it would be simpler to just pick the mc package somewhere, but I don't like it, we're loosing git traceability (and those nice github networks).
Otherwise, if development was exclusively git driven, then we would be more comfortable with git tools.
But still, we have the image which is a working copy, and not necessarily in sync with gitfiletree, so we have a more complex process than file based environments anyway : one more indirection.
image <-> files <-> staged files <-> repo
There is still one super-cool feature where git shines that we can use: jumping from one branch to another (modulo the image sync with files), the most usefull one IMO when we are mixing external platform files and Smalltalk code that require some sync.
Nicolas
April 26, 2014
Re: [Pharo-dev] Fast way to load package form github
by GOUBIER Thierry
Yuri,
pure filetree will only allow you access to the latest version (HEAD) of the repository (and will only match if you load that precise version number as stored in the package metadata or if you don't specify a version number). You have to change the commit ID (and branch) via git clone, git checkout and git checkout -b before.
github:// urls may be able to select a specific commit ID, but I don't know how. You can select the branch, however. Again, if you specify a version number for your package with a github:// url, the metadata of your package has to agree with you or it will refuse to load (you are able to see only the latest version of the package).
gitfiletree:// urls allows you to select the branch and any version visible in the git history. Read-only gitfiletree:// urls reduce the git history to one commit, so all versions are listed as .1. (Note that gitfiletree:// urls with https are read-only).
That said, if you found a way to refer a specific commit via github://, I'd really like to know how :)
Thierry
________________________________________
De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com]
Envoyé : samedi 26 avril 2014 12:11
à : Pharo Development List
Objet : Re: [Pharo-dev] Fast way to load package form github
Do you know how to specify versions with pure filetree? I know that I can specify commit SHA or branch in URL, but can I somehow redefine version for a version definition?
Uko
On 26 Apr 2014, at 11:06, GOUBIER Thierry <thierry.goubier(a)cea.fr> wrote:
> Yuri,
>
> I think the best would be a github:// url in a configuration.
>
> Shortest is something like:
>
> Gofer new
> url: 'http://smalltalkhub.com/mc/Yuri/ProjectOfYuri/main/';
> configurationOf: 'ProjectOfYuri';
> loadStable
>
> (with the github:// url inside ConfigurationOfProjectOfYuri)
>
> Note that I have added back https access to github in gitfiletree, but, still, it implies OSProcess and git command line access (but no need to register on github.com)
>
> Thierry
> ________________________________________
> De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com]
> Envoyé : samedi 26 avril 2014 09:34
> Ã : Pharo Development List
> Objet : Re: [Pharo-dev] Fast way to load package form github
>
> Yes, but this requires user to clone the repository, this is not as fast as just Gofer with Monticello. I know that there is a support for github:// URIs in Metacello, but as far as I remember they donât work in Gofer.
>
> Uko
>
> On 26 Apr 2014, at 09:25, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>
>> Gofer with a filetree:// URL as package ?
>>
>> Using the Monticello UI Tool you can just add a repo, select filetree as type and load any package.
>>
>> On 26 Apr 2014, at 09:21, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
>>
>>> Hi guys, sorry if there was already this question, but is there a fast way to load a package from github (saved with filetree)? Iâm looking for some way to tell people: execute âthisâ and you will have my package in your image.
>>>
>>> Cheers
>>> Uko
>>
>>
>
>
>
April 26, 2014
Re: [Pharo-dev] Fast way to load package form github
by Yuriy Tymchuk
Ok, Iâve figured out all the details
Uko
On 26 Apr 2014, at 12:11, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
> Do you know how to specify versions with pure filetree? I know that I can specify commit SHA or branch in URL, but can I somehow redefine version for a version definition?
>
> Uko
>
> On 26 Apr 2014, at 11:06, GOUBIER Thierry <thierry.goubier(a)cea.fr> wrote:
>
>> Yuri,
>>
>> I think the best would be a github:// url in a configuration.
>>
>> Shortest is something like:
>>
>> Gofer new
>> url: 'http://smalltalkhub.com/mc/Yuri/ProjectOfYuri/main/';
>> configurationOf: 'ProjectOfYuri';
>> loadStable
>>
>> (with the github:// url inside ConfigurationOfProjectOfYuri)
>>
>> Note that I have added back https access to github in gitfiletree, but, still, it implies OSProcess and git command line access (but no need to register on github.com)
>>
>> Thierry
>> ________________________________________
>> De : Pharo-dev [pharo-dev-bounces(a)lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk(a)me.com]
>> Envoyé : samedi 26 avril 2014 09:34
>> Ã : Pharo Development List
>> Objet : Re: [Pharo-dev] Fast way to load package form github
>>
>> Yes, but this requires user to clone the repository, this is not as fast as just Gofer with Monticello. I know that there is a support for github:// URIs in Metacello, but as far as I remember they donât work in Gofer.
>>
>> Uko
>>
>> On 26 Apr 2014, at 09:25, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>>
>>> Gofer with a filetree:// URL as package ?
>>>
>>> Using the Monticello UI Tool you can just add a repo, select filetree as type and load any package.
>>>
>>> On 26 Apr 2014, at 09:21, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
>>>
>>>> Hi guys, sorry if there was already this question, but is there a fast way to load a package from github (saved with filetree)? Iâm looking for some way to tell people: execute âthisâ and you will have my package in your image.
>>>>
>>>> Cheers
>>>> Uko
>>>
>>>
>>
>>
>>
>
>
April 26, 2014