This option deletes gclient dependencies that were remove upstream, so
it makes sense to always set this flag for the import (since the import
directoy is reused to speed up the process).
This change also fixes setup_folder_origin to run in a subshell to
contain the directory change it performs.
Test: none
Change-Id: I87c60690be81843c3947acc0251967372ed4c34a
git.origin uses a bare repo which is not supported by gclient. There may
be ways to get this to work including the git-origin-checkout-hook, but
those are a) really slow and b) much more complex than just using a
folder.origin.
This change also adds support to the import script to configure the
origin folder (i.e. clone the repo and run gclient) before the copybara
script is invoked.
Test: run import script
Change-Id: I6289108271960c87583a059a553b0d0e7db8af68
rpc://chromium/chromium/src contains a partial mirror of the Chromium
repo. Unfortunately, the mirror cannot be used as it seems to have been
created with a different gclient config (i.e. target_os is not set to
'android').
Additionally, do not use partial_fetch as gclient requires a full
checkout.
Test: run import script.
Change-Id: Iac185d3af38d95ec394551f3ca1487e65cf6c975
Running gclient in Copybara's git origin checkout is a bit tricky.
Copybara does a bare checkout which gclient does not support (and it
keeps the git dir speparate from the checkout dir). This checkout script
essentially reinitializes the git dir and runs a gclient sync on it.
Test: ./import_cronet.sh -n 108.0.5359.128 -l \
1cd27afdb8e5d057070c0961e04c490d2aca1aa0 -f
Change-Id: I2b78a7b8e0e1e9adc74175e90560a58a82b978ca
This creates a very basic (and untested!) version of an import script.
Checking this in now, so we can get better history as it evolves.
import_cronet.sh can be used to invoke copybara and set the appropriate
command line arguments.
Test: ./import_cronet.sh -l 108.0.5359.128 -n 110.0.5481.65
Change-Id: I74c6aa9245e102a1f94d0630e41ddd1079e9d41f