[Pkg-javascript-devel] migrating my packages from alioth to salsa
Paolo Greppi
paolo.greppi at libpf.com
Thu Apr 5 14:59:14 UTC 2018
This went rather smoothly, I post here as note to self and in case it's helpful to others in the team.
I sshed into moszumanska and cloned the Python script mentioned here https://wiki.debian.org/Salsa/AliothMigration:
ssh git.debian.org
git clone https://salsa.debian.org/anarcat/alioth-migration.git
Then for each package I "own" (sole uploader or WIP) I issued a number of commands similar to:
GITLAB_TOKEN=XXXXXXXXXXXXXXXXXXXXX ./alioth-migration/migrate-repo /git/pkg-javascript/node-xxx /js-team/node-xxx
Next for each of them in my local copy I run this (worked 95% of the time):
git checkout master
git pull
dch "Update Vcs fields for migration to https://salsa.debian.org/"
sed -i 's/Vcs-Git: https:\/\/anonscm.debian.org\/git\/pkg-javascript\/\(.*\).git/Vcs-Git: https:\/\/salsa.debian.org\/js-team\/\1.git/g' debian/control
sed -i 's/Vcs-Browser: https:\/\/anonscm.debian.org\/cgit\/pkg-javascript\/\(.*\).git/Vcs-Browser: https:\/\/salsa.debian.org\/js-team\/\1/g' debian/control
git status
git diff
git commit -am 'Update Vcs fields for migration to https://salsa.debian.org/'
sed -i 's/url = git+ssh:\/\/git.debian.org\/git\/pkg-javascript\/\(.*\).git/url = git at salsa.debian.org:js-team\/\1.git/g' .git/config
git push
Finally I forked the AliothRewriter repo, and listed all the packages I migrated in:
https://salsa.debian.org/salsa/AliothRewriter/blob/master/definitions/pkg-javascript.conf
Note that I have not migrated the packages I team-uploaded:
/git/pkg-javascript/node-ansi-regex.git
/git/pkg-javascript/node-bl.git
/git/pkg-javascript/node-bytes.git
/git/pkg-javascript/node-htmlparser2.git
/git/pkg-javascript/node-mute-stream.git
Paolo
More information about the Pkg-javascript-devel
mailing list