bitbake: fetch2: Sanity check SRCREV matches rev/tag parameter
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Jan 2014 13:15:12 +0000 (13:15 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Jan 2014 10:20:13 +0000 (10:20 +0000)
commit528eefbf8ed7204164172efe3460667f74f221a4
treeeec3bd64cfbe4bec3bafb018ac0220524346b2e0
parent13b57d45c18cd8f7683760610136fdb5b15f9506
bitbake: fetch2: Sanity check SRCREV matches rev/tag parameter

Add a sanity check so that if some SRCREV is set and a rev parameter is given
to the url, the revision given should match.

Any tag parameter behaves the same as rev. If both are specified, error to
tell the user we're confused rather than do something which may or may not
be what they intended.

Also add some unittests for this.

(Bitbake rev: e82a4ab48991035866da9914c8b75a9bfbc9a7fc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py
bitbake/lib/bb/tests/fetch.py