Created
August 13, 2013 11:50
-
-
Save tinchodias/6220353 to your computer and use it in GitHub Desktop.
Repository migration from Sthub to Sthub in Pharo3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| conf oldRepository newRepository gofer user pass project | | |
conf := #ConfigurationOfSandbox. | |
oldRepository := 'http://smalltalkhub.com/mc/MartinDias/Sandbox/main'. | |
newRepository := 'http://smalltalkhub.com/mc/MartinDias/Epicea/main'. | |
user := 'MartinDias'. | |
pass := '123'. | |
gofer := Gofer new | |
package: conf. | |
"Figure out the packages from the Configuration" | |
gofer copy | |
url: oldRepository username: user password: pass; | |
load. | |
"project := conf asClass project lastVersion. | |
project packages do: [:spec| gofer package: spec name. ]." | |
#(Ombu Epicea) do: [:name| gofer package: name. ]. | |
"Download all the version for the specified packages" | |
gofer copy | |
url: oldRepository; | |
fetch. | |
"push all the versions to the new location" | |
gofer copy | |
url: newRepository username: user password: pass; | |
push. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment