Il 08/05/2018 12:15, Pirate Praveen ha scritto:
> On ചൊ, മേയ് 8, 2018 at 3:25 വൈകു, Paolo Greppi <[email protected]> wrote:
>> Il 08/05/2018 10:11, Pirate Praveen ha scritto:
>>
>>     On തി, മേയ് 7, 2018 at 11:58 രാവിലെ, Paolo Greppi 
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>>         And for many the vcs_git/browser fields are set to anonscm (118) 
>> rather than salsa (51). BTW of those 118, only 31 have been migrated to 
>> salsa. 
>>
>>     Because the migration happened only recently and some packages are in 
>> NEW for 6 months. Also techwolf/Daniel Ring wanted all packages in one place 
>> so he created new packages also in alioth before the migration to salsa. 
>>
>> To address this, I volunteer to migrate to salsa the 118-31=87, using the 
>> procedure here: 
>> https://alioth-lists.debian.net/pipermail/pkg-javascript-devel/2018-April/025717.html
> 
> Thanks!

This is what I did:

1. I found the packages in the NEW queue from js-team with vcs_git matching 
regex /anonscm/:

cd ftp_master_fancy_new
./scripts/parse_queue.py # update mongodb
mongo ftp_master
db.new.find({$and: [{maintainer: 
'[email protected]'}, {'dsc.vcs_git': /anonscm/}, 
{active: true}] }, {source:1, _id:0}).count() # 118
db.new.find({$and: [{maintainer: 
'[email protected]'}, {'dsc.vcs_git': /anonscm/}, 
{active: true}] }, {source:1, _id:0}).toArray()

2. I check that the dir still exists on alioth; turns out 35 are gone

3. I check that for these 35 the salsa repo exists; turns out for these 3 we 
have neither a repo on alioth not or salsa:
node-insert-module-globals
node-mimelib
node-postcss-merge-idents
so I ask the original uploaders of the three missing packages to create the 
repo on salsa (and CC-ed the js-team list).

4. for the 118-35 = 83, migrate:
GITLAB_TOKEN=XXXXXXXXXXXXXXXXXXXXX ./alioth-migration/migrate-repo 
/git/pkg-javascript/node-xxx.git /js-team/node-xxx

Now for the 118-3=115 I plan to:
- update Vcs fields
- increase debian version
- create team upload

This can be made automatic with this script:

#! /bin/sh
# do.sh
set -e
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
if [ "$(git diff | grep -c '^+Vcs')" != 2 ]
then
  exit 99
fi
dch --team "Update Vcs fields for migration to https://salsa.debian.org/";
git commit -am 'Update Vcs fields for migration to https://salsa.debian.org/'
git push

To process the first two I did this:
git clone https://salsa.debian.org/js-team/node-alphanum-sort && pushd 
node-alphanum-sort && ../do.sh && popd
git clone https://salsa.debian.org/js-team/node-ansicolors && pushd 
node-ansicolors && ../do.sh && popd

Before I launch it for the other 113, please let me know if you have any 
comments on node-alphanum-sort and node-ansicolors.

Paolo

-- 
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to