To produce a bash script containing commands to restore repositories' revisions:
-
make sure you are running the following from a top of an Android source tree, e.g. /path/to/your/sources/tree/LOS15.1
-
run:
python2 get_tree.py .repo/manifests/default.xml .repo/manifests/snippets/lineage.xml .repo/manifests/local_manifest.xml > update.sh