]> code.ossystems Code Review - openembedded-core.git/commit
devtool: upgrade: enable branch checking when revision is provided
authorChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Mon, 21 Aug 2017 05:39:44 +0000 (17:39 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Aug 2017 07:30:32 +0000 (08:30 +0100)
commit29ced7387a92aed17b7fe93b1654790a981734c1
tree3bced432d8db6a43f2bfe5c3fbc07b4ce27b7fec
parent9d3ec76c1b7dd75d904f5ff47297de0fb65b21c2
devtool: upgrade: enable branch checking when revision is provided

When devtool upgrade is run on a recipe with revision specified
that is not on master branch, and branch isn't set by --srcbranch or -B,
then we should get the correct branch and append the branch to the URL.

If the revision was found on multiple branches, we will display error
to inform user to provide a correct branch and exit.

[YOCTO #11484]

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py