[Pkg-javascript-devel] How to switch to DEP14 automatically for > 1000 existing repositories

Raphael Hertzog hertzog at debian.org
Sat Sep 12 10:34:45 BST 2020


Hi,

On Fri, 11 Sep 2020, Xavier wrote:
> Something like:
> 
>   $ salsa --group xx-team --all --no-fail protect_branch master no
>   $ salsa --group xx-team --all --no-fail rename_branch \
>           --source-branch=master --dest-branch=debian/master
>   $ salsa --group xx-team --all --no-fail rename_branch \
>           --source-branch=upstream --dest-branch=master
>   $ salsa --group xx-team --all --no-fail protect_branch master md
> 
> NB: I didn't verify if "--all" is compatible with these commands but I
> can fix that if this doesn't work. I think Raphaël Hertzog tried it;
> Raphaël, did you ?

Yes, for pkg-security we use:
$ salsa --conf-file +./salsa-pkg-security.conf update_safe --all --verbose

And the config file has SALSA_RENAME_HEAD and SALSA_SOURCE_BRANCH and
SALSA_DEST_BRANCH to take care of this operation. AFAIK we did not have
to do anything regarding the branch protection, but maybe I'm wrong.

https://salsa.debian.org/pkg-security-team/pkg-security-team/-/blob/master/salsa-pkg-security.conf

Cheers,
-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog <hertzog at debian.org>
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋    The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄⠀⠀⠀⠀   Debian Long Term Support: https://deb.li/LTS



More information about the Pkg-javascript-devel mailing list