@@ -11,7 +11,7 @@ Usage (from a cloned CPython directory) ::
1111About
1212=====
1313
14- This tool is used to backport CPython changes from ``master `` into one or more
14+ This tool is used to backport CPython changes from ``main `` into one or more
1515of the maintenance branches (``3.6 ``, ``3.5 ``, ``2.7 ``).
1616
1717``cherry_picker `` can be configured to backport other projects with similar
@@ -76,10 +76,10 @@ Commit sha1
7676-----------
7777
7878The commit sha1 for cherry-picking is the squashed commit that was merged to
79- the ``master `` branch. On the merged pull request, scroll to the bottom of the
79+ the ``main `` branch. On the merged pull request, scroll to the bottom of the
8080page. Find the event that says something like::
8181
82- <coredeveloper> merged commit <commit_sha1> into python:master <sometime> ago.
82+ <coredeveloper> merged commit <commit_sha1> into python:main <sometime> ago.
8383
8484By following the link to ``<commit_sha1> ``, you will get the full commit hash.
8585Use the full commit hash for ``cherry_picker.py ``.
@@ -136,7 +136,7 @@ Available config options::
136136
137137 repo Project's default branch name,
138138 e.g "devel" for https://github.com/ansible/ansible
139- ("master " by default)
139+ ("main " by default)
140140
141141
142142To customize the tool for used by other project:
@@ -190,13 +190,13 @@ What this will do:
190190 (venv) $ git checkout -b backport-6de2b78-3.5 upstream/3.5
191191 (venv) $ git cherry-pick -x 6de2b7817f-some-commit-sha1-d064
192192 (venv) $ git push origin backport-6de2b78-3.5
193- (venv) $ git checkout master
193+ (venv) $ git checkout main
194194 (venv) $ git branch -D backport-6de2b78-3.5
195195
196196 (venv) $ git checkout -b backport-6de2b78-3.6 upstream/3.6
197197 (venv) $ git cherry-pick -x 6de2b7817f-some-commit-sha1-d064
198198 (venv) $ git push origin backport-6de2b78-3.6
199- (venv) $ git checkout master
199+ (venv) $ git checkout main
200200 (venv) $ git branch -D backport-6de2b78-3.6
201201
202202In case of merge conflicts or errors, the following message will be displayed::
@@ -226,14 +226,14 @@ steps it would execute without actually executing any of them. For example::
226226 dry_run: git cherry-pick -x 1e32a1be4a1705e34011770026cb64ada2d340b5
227227 dry_run: git push pr backport-1e32a1b-3.6
228228 dry_run: Create new PR: https://github.com/python/cpython/compare/3.6...ncoghlan:backport-1e32a1b-3.6?expand=1
229- dry_run: git checkout master
229+ dry_run: git checkout main
230230 dry_run: git branch -D backport-1e32a1b-3.6
231231 Now backporting '1e32a1be4a1705e34011770026cb64ada2d340b5' into '3.5'
232232 dry_run: git checkout -b backport-1e32a1b-3.5 origin/3.5
233233 dry_run: git cherry-pick -x 1e32a1be4a1705e34011770026cb64ada2d340b5
234234 dry_run: git push pr backport-1e32a1b-3.5
235235 dry_run: Create new PR: https://github.com/python/cpython/compare/3.5...ncoghlan:backport-1e32a1b-3.5?expand=1
236- dry_run: git checkout master
236+ dry_run: git checkout main
237237 dry_run: git branch -D backport-1e32a1b-3.5
238238
239239`--pr-remote ` option
@@ -291,7 +291,7 @@ The url of the pull request page looks similar to the following::
291291Press the ``Create Pull Request `` button.
292292
293293Bedevere will then remove the ``needs backport to ... `` label from the original
294- pull request against ``master ``.
294+ pull request against ``main ``.
295295
296296
297297Running Tests
@@ -329,15 +329,17 @@ in the directory where ``pyproject.toml`` exists::
329329.. |pypi status | image :: https://img.shields.io/pypi/v/cherry-picker.svg
330330 :target: https://pypi.org/project/cherry-picker/
331331
332- .. |travis status | image :: https://travis-ci.com/python/cherry-picker.svg?branch=master
332+ .. |travis status | image :: https://travis-ci.com/python/cherry-picker.svg?branch=main
333333 :target: https://travis-ci.com/python/cherry-picker
334334
335335Changelog
336336=========
337337
338- 1.3.3 (in development)
338+ 2.0.0 (in development)
339339----------------------
340340
341+ - Support the ``main `` branch by default. To use a different default branch,
342+ please configure it in the ``.cherry-picker.toml `` file.
341343
3423441.3.2
343345-----
0 commit comments