poky/scripts/lib
Paul Eggleton 7bab0de6cb devtool: upgrade: improve performance and show progress when adding files
When devtool upgrade is upgrading to a new version where the source is
fetched as an archive (e.g. a tarball), we create a single commit in the
git repository that is the upgrade from the old version to the new. We
do this by extracting the old source, committing it, deleting all files,
copying in the new files, running git add on each new/changed/deleted
file, and then committing the result. When a lot of files have changed
in an upgrade (such as QEMU 2.8.1.1 -> 2.10.0) the penultimate step of
running git add it can take quite a long time; in order to reduce this
and show some feedback to the user, run git add with batches of 100
files at once and also show a progress bar. In a local test with the
aforementioned QEMU upgrade it took the time down from over 7 minutes
down to about 13 seconds.

Fixes [YOCTO #11948].

(From OE-Core rev: 8b184f6c874b60324ee107af53853687173d3434)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-11-11 12:14:27 +00:00
..
build_perf scripts/oe-build-perf-report: show recipe version changes in html report 2017-09-18 11:07:30 +01:00
checklayer scripts: drop True option to getVar calls 2017-09-26 11:05:01 +01:00
devtool devtool: upgrade: improve performance and show progress when adding files 2017-11-11 12:14:27 +00:00
recipetool recipetool: ignore incidental kernel module source 2017-11-11 12:14:26 +00:00
wic wic: Update canned-wks for systemd to use UUID everywhere 2017-11-08 22:24:04 +00:00
argparse_oe.py argparse_oe: Add int_positive type 2017-07-21 08:44:25 +01:00
buildstats.py scripts/oe-build-perf-report: show recipe version changes in html report 2017-09-18 11:07:30 +01:00
scriptpath.py scripts: consolidate code to find bitbake path 2014-06-25 13:51:45 +01:00
scriptutils.py scriptutils: fix fetch_url() to use lowercase dummy recipe name 2017-08-31 23:30:03 +01:00