Newsgroups: php.doc,php.internals Path: news.php.net Xref: news.php.net php.doc:969387756 php.internals:112661 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40231 invoked from network); 30 Dec 2020 14:24:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Dec 2020 14:24:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6AA691804D1; Wed, 30 Dec 2020 05:58:47 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS; Wed, 30 Dec 2020 05:58:47 -0800 (PST) Received: by mail-lf1-f46.google.com with SMTP id o13so37816144lfr.3; Wed, 30 Dec 2020 05:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1XCu8GkkB9f9nBZd/Q4hhUs44LFAEx3NMihdyAIlf9s=; b=jtddU+OoAMjKFWEEvPBxXYHssMpBnlic4D+Vrr+yGRotay7cdEysR5cAV3UsMZ17Dt lLBVXHs/cBuIV0l1JOfJD2BeeuR34HSlaZMrYer0ZicVeDGD5tTIXKFLDlnlYDhgsLGN FJC3vKlOMlfyi5Ub0W+Q+Bt9mW0zzzXU+iQv4/1RxhfGVKSKq+6j0894J4kbs8jJLGgE ScHfAf6JMi0Ll4sSPqskmD87R95d2sttnhTE2AfgWSYKpCSTN9xj+vVXzsMAtMpg/J6Y 91szwei1l4VSTf/BZJUFQ5w6UvWOQD7kN9IsF4uIVim+lCrVLSSuC7gFixTwsuLC3jWQ lrWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1XCu8GkkB9f9nBZd/Q4hhUs44LFAEx3NMihdyAIlf9s=; b=dY5rKMdjWsDAmV58S1I8FhQtgf5lJreUlky4PPbuCiPev4BvqCG79xuMCHnkeQeHaC NwJkziovhMAm1LT9bogVPjhBjaOgbpd3ou1otk5vg1QlURt7ZpnQ956WmDT99ZhIzknj yFSHbyaJCYs+2FgykXPQ7p6v+3dD+Cgje6EgnL0VpIdnZfmT0edUO0bZFIzVmoafZlww si7AntjDXT2cazPtd7D3UEV5LUeayd/urPOuPJoEnaKcxSdJ7CF0jhFfrAn9y9DSCgoR O73K4AnzMQQ9koAms2pQpuWketoFi3eqc6RrKevdotcFrcuu5fCQ1adWMyicFh26rvxO mcdw== X-Gm-Message-State: AOAM532qvSZ76oieAOdue6AJDSLGaab/Ffhy4/Ky2wHSM7YFu2/XsZfO tnRlBaNfftLTpmcIPbx3td/FbWAAfFd8QoGRCKnARDnomUoUUg== X-Google-Smtp-Source: ABdhPJzjjg/RnHQj7/UDBCUNY4hmWVvgvhlacxrGM1RPMXHHn2xiuK2U1PGm7QSkJ4F3tIc4tFBbzf4B2moT22djhM8= X-Received: by 2002:ac2:4431:: with SMTP id w17mr21542142lfl.223.1609336725659; Wed, 30 Dec 2020 05:58:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 30 Dec 2020 14:58:29 +0100 Message-ID: To: Andreas Heigl Cc: PHP Documentation ML , PHP internals Content-Type: multipart/alternative; boundary="000000000000db67cb05b7aee768" Subject: Re: Moving from SVN to git - finally! From: nikita.ppv@gmail.com (Nikita Popov) --000000000000db67cb05b7aee768 Content-Type: text/plain; charset="UTF-8" On Tue, Dec 29, 2020 at 7:34 PM Andreas Heigl wrote: > Hey folks! > > After some years we are finally at the point to do what so many have > been asking for: We will move the source-control of the > PHP-Documentation from SVN to git! > > Tomorrow! > > TL;DR > > Tomorrow we will remove docs-karma from SVN, do a final transition and > then add doc-karma to git. Then all contributions to the > PHP-Documentation will be via git.php.net > > Slightly longer version: > > Throughout the last year we continuously moved the commits from SVN over > to the different repositories at git.php.net. 2 Days ago we finally > switched the actually creation of the docs from using the SVN-sources to > using the git-sources. It was a seamless transition and the broken > translations were broken before. So we managed to switch the VCS without > anyone noticing ;-) > > But that will not be possible for the next step. > > As everyone that is currently contributing to the docs via SVN will need > to do at least 2 things to be able to continue contributing! > > * Checkout the docs-base from https://git.php.net/repository/doc/base.git > * Check out the english documentation from git@git.php.net:/doc/en.git > And if you are doing translations: > * Check out your respective language from > git@git.php.net:/doc/[language].git > > Yes! You've seen that right! We moved away from the monorepo to one repo > per language. As at this point in time there are access restrictions on > the different languages this was a necessary move. There are pros and > cons to that that were addressed when we started that voyage. And you > can feel free to discuss them as soon as the transition has been made > and you have found someone doing the necessary work for a further change > ;-) > > And as git doesn't know about "revisions" we had to change one thing for > the translations: So far you kept the revision of the english doc you > base the translation on in the attribute "en-revision". That will now > change! After the switch you will need to add the _commit-hash_ of the > english doc there instead! > > Apart from that the translation workflow itself stays the same. We only > changed the Version Control System, nothing else. > > So what will be the next steps now? > > As already mentioned: Sometime tomorrow we will switch off karma for > svn.php.net. > Then we will do one last transition to git and modify the repos so that > the revision is replaced by the commit-hash > Then we will switch karma on for git.php.net > And when that is finished, we will create the github mirrors so that > everyone can create PRs for the docs and the translations! > > That's it. > > Almost... > > As there is one thing though that is not done yet which we need some > help with: The revision-check! For those of you that do not know what it > is: Head over to http://doc.php.net/revcheck.php and have a look. In > short: It shows how outdated a translation is. This was tightly coupled > to SVN and it is much harder to convert to git as originally > anticipated. So any help on that is highly appreciated! Patches for > http://git.php.net/?p=web/doc.git;a=blob;f=scripts/rev.php are > definitely welcome! > > But that is something for a new challenge! > > Looking forward to being able to put a decade long challenge for the > community and a 4+ year challenge for me to a good end tomorrow! > > Let's all cross fingers that everything goes as smooth as expected! > > Cheers > The SVN -> Git migration has finished. If you have phpdoc karma, you should be able to push to the "doc" repos listed on http://git.php.net/ now. Note that the upstream Git repos are hosted on git.php.net (e.g. http://git.php.net/?p=doc/en.git;a=summary), but have mirrors on GitHub ( https://github.com/php/doc-en). You should always push changes to the upstream repo, not the GitHub mirror. The GitHub mirrors only exist to accept pull requests. It will take a while for all the tooling to catch up, so in the meantime some notes on how we typically merge pull requests in php-src: 1. Append ".patch" to the pull request URL: https://github.com/php/doc-en/pull/293.patch 2. Download the patch: wget https://patch-diff.githubusercontent.com/raw/php/doc-en/pull/293.patch 3. Apply the patch: git am 293.patch 4. Auto-close the pull request: git commit --am and add "Closes php/doc-en#293" to the commit message 5. Push: git push origin master I expect this workflow to be automated for documentation repositories in the future. Regards, Nikita --000000000000db67cb05b7aee768--