Skip to content

Instantly share code, notes, and snippets.

@tinchodias
Created August 13, 2013 11:50
Show Gist options
  • Save tinchodias/6220353 to your computer and use it in GitHub Desktop.
Save tinchodias/6220353 to your computer and use it in GitHub Desktop.
Repository migration from Sthub to Sthub in Pharo3
| 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