Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: minor tweaks to manual backport instructions #11186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions doc/devel/coding_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,26 @@ We do a backport from master to v2.2.x assuming:

The ``TARGET_SHA`` is the hash of the merge commit you would like to
backport. This can be read off of the github PR page (in the UI with
the merge notification) or through the git CLI tools.::
the merge notification) or through the git CLI tools.

git fetch matplotlib
git checkout v2.2.x
git merge --ff-only matplotlib/v2.2.x
Assuming that you already have a local branch ``v2.2.x`` (if not, then
``git checkout -b v2.2.x``), and that your remote pointing to
``https://github.com/matplotlib/matplotlib`` is called ``upstream``::

git fetch upstream
git checkout v2.2.x # or include -b if you don't already have this.
git reset --hard upstream/v2.2.x
git cherry-pick -m 1 TARGET_SHA
# resolve conflicts and commit if required

Use your discretion to push directly to upstream or to open a PR.
Files with conflicts can be listed by `git status`,
and will have to be fixed by hand (search on ``>>>>>``). Once
the conflict is resolved, you will have to re-add the file(s) to the branch
and then continue the cherry pick::

git add lib/matplotlib/conflicted_file.py
git add lib/matplotlib/conflicted_file2.py
git cherry-pick --continue

Use your discretion to push directly to upstream or to open a PR; be
sure to push or PR against the `v2.2.x` upstream branch, not `master`!