]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
script/ceph-backport.sh: Add prepare function 28446/head
authorTiago Melo <tmelo@suse.com>
Tue, 4 Jun 2019 11:28:26 +0000 (12:28 +0100)
committerTiago Melo <tmelo@suse.com>
Wed, 12 Jun 2019 12:00:49 +0000 (14:00 +0200)
commit40768c36887bb33ab41ed16d4eac7226a5aa7dac
tree20cd4288290fa4164ea70f472275f920b0e2e62a
parent810b69d4c1fa1c69ae60351965a74404fb3ed8d4
script/ceph-backport.sh: Add prepare function

Add a new flag, --prepare, that when used will fetch all necessary info and
cherrypick all original commits automatically.
It will also prevent the main code to be executed.

After running with --prepare, and if there were no conflicts, you can simply
remove the flag from the command and run the script again.
This time it will run the main code and create the PR and update the backport
issue.

p.e.:
ceph-backport.sh 19206 jewel --prepare
ceph-backport.sh 19206 jewel

Signed-off-by: Tiago Melo <tmelo@suse.com>
src/script/ceph-backport.sh