Mesa (main): docs: update branchpoint instructions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 15 23:28:51 UTC 2021


Module: Mesa
Branch: main
Commit: 9ae34651f723782dca2bed587a7cae527ae98d17
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ae34651f723782dca2bed587a7cae527ae98d17

Author: Eric Engestrom <eric at engestrom.ch>
Date:   Wed Nov 10 22:38:21 2021 +0000

docs: update branchpoint instructions

Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13745>

---

 docs/releasing.rst | 36 +++++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 11 deletions(-)

diff --git a/docs/releasing.rst b/docs/releasing.rst
index 87833f6dadd..9a215728ad3 100644
--- a/docs/releasing.rst
+++ b/docs/releasing.rst
@@ -175,22 +175,27 @@ to stabilization and bugfixing.
    testing is done and there are little to-no issues. Ideally all of those
    should be tackled already.
 
-Check if the version number is going to remain as, alternatively
-``git mv docs/relnotes/{current,new}.rst`` as appropriate.
-
 To setup the branchpoint:
 
 .. code-block:: console
 
-   git checkout main # make sure we're in main first
+   git fetch origin # make sure we have the latest commits
+   git checkout main # make sure we're on main
+   git reset origin # make sure we're at the latest commit
+
    git tag -s X.Y-branchpoint -m "Mesa X.Y branchpoint"
-   git checkout -b X.Y
-   git checkout main
-   $EDITOR VERSION # bump the version number
-   git commit -as
-   truncate docs/relnotes/new_features.txt
-   git commit -a
-   git push origin X.Y-branchpoint X.Y
+
+   # Make sure main can carry on at the new version
+   $EDITOR VERSION # bump the version number, keeping in mind the wrap around at the end of the year
+   git commit -asm 'VERSION: bump to X.(Y+1)'
+   truncate -s0 docs/relnotes/new_features.txt
+   git commit -asm 'docs: reset new_features.txt'
+   git push origin main
+
+   # Create the tag and branches on the server
+   git push origin X.Y-branchpoint
+   git push origin X.Y-branchpoint:refs/heads/X.Y
+   git push origin X.Y-branchpoint:refs/heads/staging/X.Y
 
 Now go to
 `GitLab <https://gitlab.freedesktop.org/mesa/mesa/-/milestones>`__ and
@@ -294,6 +299,15 @@ Add the sha256sums to the release notes
 Edit ``docs/relnotes/X.Y.Z.rst`` to add the ``sha256sum`` as available in the
 ``mesa-X.Y.Z.announce`` template. Commit this change.
 
+Don't forget to push the commits to both the ``staging/X.Y`` branch and
+the ``X.Y`` branch:
+
+.. code-block:: console
+
+   git push origin HEAD:staging/X.Y
+   git push origin HEAD:X.Y
+
+
 Back on mesa main, add the new release notes into the tree
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 



More information about the mesa-commit mailing list