@@ -149,44 +149,10 @@ bug fixes or security fixes. In almost all cases the fixes should first
149149originate on ``main `` and then be ported back to older branches.
150150
151151
152- .. _branch-merge :
153-
154152Backporting changes to an older version
155153^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156154
157- If it is determined that a pull request needs to be backported into one or
158- more of the maintenance branches, then a core team member can apply the label
159- ``needs backport to X.Y `` to the pull request.
160-
161- After the pull request has been merged, miss-islington (bot) will first try to
162- do the backport automatically. If miss-islington is unable to do it,
163- then the pull request author or the core team member who merged it should look into
164- backporting it themselves, using the backport generated by cherry_picker.py _
165- as a starting point.
166-
167- You can get the commit hash from the original pull request, or you can use
168- ``git log `` on the ``main `` branch. To display the 10 most recent commit
169- hashes and their first line of the commit, use the following command::
170-
171- git log -10 --oneline
172-
173- .. _backport-pr-title :
174-
175- You can prefix the backport pull request with the branch, and reference
176- the pull request number from ``main ``. Here is an example::
177-
178- [3.9] gh-12345: Fix the Spam Module (GH-NNNN)
179-
180- Here "gh-12345" is the GitHub *issue * number, and "GH-NNNN" is the
181- number of the original *pull request *.
182- Note that cherry_picker.py _ adds the branch prefix automatically.
183-
184- Once the backport pull request has been created, remove the
185- ``needs backport to X.Y `` label from the original pull request. (Only
186- members of the core team and :ref: `Python Triage Team <triage-team >`
187- can apply labels to GitHub pull requests).
188-
189- .. _cherry_picker.py : https://github.com/python/cherry-picker
155+ This section has moved to :ref: `branch-merge `.
190156
191157
192158Reverting a merged pull request
0 commit comments