Commit cd6f1a3
scripts: west_commands: introduce ncs-cherry-pick
The west ncs-cherry-pick automates most of the manual, tedious work
required to cherry pick commits from an OSS upstream, be that
fromlisting commits from a PR, or selecting one or more fromtrees.
The command allows specifying which commits to cherry-pick, the
command will then automatically cherry-pick and revert any commits
required to cleanly cherry pick the commits from upstream.
Any conflicting commits from downstream will be listed for manual
reapplication.
Once a cherry-pick is ready, the command can also rebase/resync an
existing branch, so rebase on downstream main, remove now empty
fromtrees, and update the fromlisted commits from the PR, even
converting them to fromtrees if the PR got merged.
The script can cherry pick from and two specified branches as well,
for example picking from upstream main to downstream v3.2-branch
for manual backports.
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>1 parent ecd8c13 commit cd6f1a3
4 files changed
Lines changed: 1454 additions & 0 deletions
File tree
- scripts
- west_commands
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| 739 | + | |
739 | 740 | | |
740 | 741 | | |
| 742 | + | |
741 | 743 | | |
742 | 744 | | |
743 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments