@@ -11,7 +11,7 @@ Usage (from a cloned CPython directory) ::
11
11
About
12
12
=====
13
13
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
15
15
of the maintenance branches (``3.6 ``, ``3.5 ``, ``2.7 ``).
16
16
17
17
``cherry_picker `` can be configured to backport other projects with similar
@@ -76,10 +76,10 @@ Commit sha1
76
76
-----------
77
77
78
78
The 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
80
80
page. Find the event that says something like::
81
81
82
- <coredeveloper> merged commit <commit_sha1> into python:master <sometime> ago.
82
+ <coredeveloper> merged commit <commit_sha1> into python:main <sometime> ago.
83
83
84
84
By following the link to ``<commit_sha1> ``, you will get the full commit hash.
85
85
Use the full commit hash for ``cherry_picker.py ``.
@@ -136,7 +136,7 @@ Available config options::
136
136
137
137
repo Project's default branch name,
138
138
e.g "devel" for https://github.com/ansible/ansible
139
- ("master " by default)
139
+ ("main " by default)
140
140
141
141
142
142
To customize the tool for used by other project:
@@ -190,13 +190,13 @@ What this will do:
190
190
(venv) $ git checkout -b backport-6de2b78-3.5 upstream/3.5
191
191
(venv) $ git cherry-pick -x 6de2b7817f-some-commit-sha1-d064
192
192
(venv) $ git push origin backport-6de2b78-3.5
193
- (venv) $ git checkout master
193
+ (venv) $ git checkout main
194
194
(venv) $ git branch -D backport-6de2b78-3.5
195
195
196
196
(venv) $ git checkout -b backport-6de2b78-3.6 upstream/3.6
197
197
(venv) $ git cherry-pick -x 6de2b7817f-some-commit-sha1-d064
198
198
(venv) $ git push origin backport-6de2b78-3.6
199
- (venv) $ git checkout master
199
+ (venv) $ git checkout main
200
200
(venv) $ git branch -D backport-6de2b78-3.6
201
201
202
202
In 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::
226
226
dry_run: git cherry-pick -x 1e32a1be4a1705e34011770026cb64ada2d340b5
227
227
dry_run: git push pr backport-1e32a1b-3.6
228
228
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
230
230
dry_run: git branch -D backport-1e32a1b-3.6
231
231
Now backporting '1e32a1be4a1705e34011770026cb64ada2d340b5' into '3.5'
232
232
dry_run: git checkout -b backport-1e32a1b-3.5 origin/3.5
233
233
dry_run: git cherry-pick -x 1e32a1be4a1705e34011770026cb64ada2d340b5
234
234
dry_run: git push pr backport-1e32a1b-3.5
235
235
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
237
237
dry_run: git branch -D backport-1e32a1b-3.5
238
238
239
239
`--pr-remote ` option
@@ -291,7 +291,7 @@ The url of the pull request page looks similar to the following::
291
291
Press the ``Create Pull Request `` button.
292
292
293
293
Bedevere will then remove the ``needs backport to ... `` label from the original
294
- pull request against ``master ``.
294
+ pull request against ``main ``.
295
295
296
296
297
297
Running Tests
@@ -329,15 +329,17 @@ in the directory where ``pyproject.toml`` exists::
329
329
.. |pypi status | image :: https://img.shields.io/pypi/v/cherry-picker.svg
330
330
:target: https://pypi.org/project/cherry-picker/
331
331
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
333
333
:target: https://travis-ci.com/python/cherry-picker
334
334
335
335
Changelog
336
336
=========
337
337
338
- 1.3.3 (in development)
338
+ 2.0.0 (in development)
339
339
----------------------
340
340
341
+ - Support the ``main `` branch by default. To use a different default branch,
342
+ please configure it in the ``.cherry-picker.toml `` file.
341
343
342
344
1.3.2
343
345
-----
0 commit comments