poky/bitbake/lib/bb
Aníbal Limón 7587877e5d bitbake: fetch/git: Add latest_versionstring method
Being able to generate a version string representing the most recent git commit
given git is useful, not least for the package reporting system.

This adds in a latest_versionstring method to the git fetcher
which allows users to query the latest version using ls-remote
and filtering the responses.

The patch also adds unittests for this function so that if
improvements are made, the original test urls can be used
to evaulate the those changes.

This is based on code from Irina Patru <irina.patru@intel.com>.

(Bitbake rev: f71c8c0354e87fed80bc845db6728e6e18ce9c4d)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-11-12 15:25:17 +00:00
..
fetch2 bitbake: fetch/git: Add latest_versionstring method 2014-11-12 15:25:17 +00:00
parse bitbake: event: Add SkipRecipe event to replace SkipPackage 2014-06-01 14:29:31 +01:00
pysh bitbake: lib: fix no newline at end of file 2014-07-04 09:28:36 +01:00
server bitbake: process: Ensure abnormal exits set an error level 2014-09-02 18:10:37 +01:00
tests bitbake: fetch/git: Add latest_versionstring method 2014-11-12 15:25:17 +00:00
ui bitbake: toasterui: improvements in data reading 2014-11-06 16:45:23 +00:00
__init__.py bitbake: bin/bitbake: Update to version 1.24.0 2014-09-23 22:10:12 +01:00
build.py bitbake: build/data: Write out more complete python run files 2014-08-28 15:12:45 +01:00
cache_extra.py bitbake: bitbake: cooker: get extra information from recipe cache 2013-09-22 12:19:44 +01:00
cache.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
checksum.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
codeparser.py bitbake: codeparser cache improvements 2014-07-26 08:50:14 +01:00
command.py bitbake: knotty: Ensure commandline parameters are updated in memres server 2014-09-23 20:06:06 +01:00
compat.py bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds 2013-06-14 17:26:30 +01:00
cooker.py bitbake: knotty: Ensure commandline parameters are updated in memres server 2014-09-23 20:06:06 +01:00
cookerdata.py bitbake: knotty: Ensure commandline parameters are updated in memres server 2014-09-23 20:06:06 +01:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
daemonize.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
data_smart.py bitbake: data_smart.py: fix variable splitting at _remove mechanism 2014-11-08 11:14:31 +00:00
data.py bitbake: build/data: Write out more complete python run files 2014-08-28 15:12:45 +01:00
event.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
exceptions.py bitbake/exceptions: Handle reports from the field of exception code failures 2012-05-25 11:15:12 +01:00
methodpool.py bitbake: methodpool: Retire it, remove global method scope 2013-05-24 10:34:52 +01:00
monitordisk.py bitbake: monitordisk: don't log when not monitoring a filesystem for inodes 2014-09-29 12:08:48 +01:00
msg.py bitbake: msg: Add stdout/stderr filters 2014-03-27 10:17:20 +00:00
namedtuple_with_abc.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
persist_data.py bitbake: persist_data: Avoid fsync() calls 2014-05-03 11:24:48 +01:00
process.py bitbake: process: Add timeout to select call 2013-12-10 17:55:29 +00:00
providers.py bitbake: providers/runqueue/taskdata: Optimise logger.debug calls 2014-03-10 11:10:00 -07:00
runqueue.py bitbake: bitbake: Make printed 'runqueue' be consistently capitalized 2014-11-06 16:45:23 +00:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: siggen: Fix shared work checksum mismatch/rebuild issues 2014-11-08 11:14:31 +00:00
taskdata.py bitbake: providers/runqueue/taskdata: Optimise logger.debug calls 2014-03-10 11:10:00 -07:00
tinfoil.py bitbake: tinfoil: add a means of enabling variable history tracking 2014-09-05 10:14:25 +01:00
utils.py bitbake: utils.py: don't use len() for truth value testing. 2014-10-28 14:58:34 +00:00