Re: [Pkg-javascript-devel] migrating my packages from alioth to salsa
Il 05/04/2018 17:09, Bas Couwenberg ha scritto: > On 2018-04-05 16:59, Paolo Greppi wrote: >> GITLAB_TOKEN=X ./alioth-migration/migrate-repo >> /git/pkg-javascript/node-xxx /js-team/node-xxx > > There are also many node packages under collab-maint, these should also be > migrated to js-team on Salsa. > > I did that for node-mapnik & mapnik-reference. > > Kind Regards, > > Bas > I have looked up the current vcs_browser fields from udd (1356 packages) and the repos the js-team already has on salsa (217 repos). 4 packages have empty vcs_browser: node-daemon (15), node-growl (56), node-utilities (42) and queue-async (19) 127 have repos on salsa, 36 of those already have vcs_browser set to salsa but 4 are incorrect (they all share the same error: the vcs_browser field should be without trailing .git , see https://wiki.debian.org/Salsa/Doc#Canonical_URLS): jquery-tablesorter, less-elements.js, libjs-jquery-colorpicker and node-macaddress The remaining 127-36 = 91 have yet to update the vcs_browser field in the package with an upload. We have 130 repos on collab-maint. Of these, 3 already have the salsa repo but have yet to update the vcs_browser field in the package with an upload: mapnik-reference, node-mapnik and nodejs. There is one in a non-team repo (node-util) The rest 1356-4-36-130-1 = 1185 are on pkg-javascript. Paolo P.S. How to reproduce Get the data from udd: ssh git.debian.org psql -U guest -h udd.debian.org -p 5452 udd SELECT source, vcs_browser FROM all_sources WHERE maintainer_email='pkg-javascript-devel@lists.alioth.debian.org' AND release='sid'; Get the repos that exist on salsa via the github API: https://salsa.debian.org/api/v4/groups/js-team/projects?per_page=100&page=1 https://salsa.debian.org/api/v4/groups/js-team/projects?per_page=100&page=2 https://salsa.debian.org/api/v4/groups/js-team/projects?per_page=100&page=3 >From that JSON array extract the repo URLs with: cat projects.json | jq 'map(.http_url_to_repo)' -- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel
Re: [Pkg-javascript-devel] migrating my packages from alioth to salsa
On 2018-04-05 16:59, Paolo Greppi wrote: GITLAB_TOKEN=X ./alioth-migration/migrate-repo /git/pkg-javascript/node-xxx /js-team/node-xxx There are also many node packages under collab-maint, these should also be migrated to js-team on Salsa. I did that for node-mapnik & mapnik-reference. Kind Regards, Bas -- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel
[Pkg-javascript-devel] migrating my packages from alioth to salsa
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=X ./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