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 
= g...@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

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to