poky/scripts/lib/devtool
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
..
__init__.py devtool: ensure recipes devtool is working on are unlocked within the eSDK 2017-09-18 11:07:29 +01:00
build_image.py scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
build_sdk.py devtool: add build-sdk subcommand 2016-03-07 00:11:38 +00:00
build.py devtool: add "rename" subcommand 2016-11-07 11:04:22 +00:00
deploy.py scripts: drop True option to getVar calls 2017-09-26 11:05:01 +01:00
export.py devtool: export: new plugin to export the devtool workspace 2017-08-23 08:47:02 +01:00
import.py devtool: import: new plugin to import the devtool workspace 2017-08-23 08:47:02 +01:00
package.py meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
runqemu.py devtool: point runqemu to correct native bindir 2017-04-05 23:22:12 +01:00
sdk.py devtool: sdk-update: fix pulling updates from git 2017-08-09 09:24:16 +01:00
search.py scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
standard.py devtool: standard: Expand SRCREV before using it in _update_recipe_srcrev 2017-10-16 23:52:44 +01:00
upgrade.py devtool: upgrade: improve performance and show progress when adding files 2017-11-11 12:14:27 +00:00
utilcmds.py devtool: edit-recipe: fix regression 2017-08-31 23:30:02 +01:00