aboutsummaryrefslogtreecommitdiffstats
path: root/rrs/tools/upgrade_history_internal.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-04-06 23:27:00 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commit7343484695f264d68d5b5ed8900a0786d755a2ff (patch)
tree1ae54d2dfd5ff95f77e508f87c784b0a79aa48fc /rrs/tools/upgrade_history_internal.py
parent009adcb8df8dabf5b459a98f35f3d1a829449a36 (diff)
downloadopenembedded-core-contrib-7343484695f264d68d5b5ed8900a0786d755a2ff.tar.gz
utils: add common function to check out a specific git revision
Checking out a revision in the bitbake/layer repositories is something we are doing in a few places, so add a checkout_repo() function that does this, ensuring that we don't get tripped up by any junk files, and avoids checking out if the repository is already at the desired revision (thus avoiding the clean operation and e.g. preserving any .pyc files that aren't stale and would speed things up a little). Note that we do the clean before checking out in case there are untracked files that are tracked in the commit we are checking out. In addition to adding this function, change the existing code that we use in the update script to check out a layer use the new function. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'rrs/tools/upgrade_history_internal.py')
0 files changed, 0 insertions, 0 deletions