Currently SRCREV is not safe for use in .bb files and needs to be specified in the global .conf files other wise when bitbake decides which versions to build, the information can be inconsistent. This should be fixed to allow users to set a default revision in the .bb recipe where the information should belong (still allowing the core configuration to override). As for the technical implementation, when a .bb file is processed by cache.py and the apprpriate data stored, SRCREV should be saved, then when taskdata evaluated providers, this data should be injected into the core dictionary.
SRCREV is now being correctly handled from .bb files.