git-repo/subcmds
Sean McAllister 74e8ed4bde Expose upstream and dest-branch attributes through environment
Recent changes in ChromeOS Infra to ensure we're reading from
snapshot manifests properly have exposed several bugs in our
assumptions about manifest files.  Mainly that the revision field
for a project does _not_ have to refer to a ref, it can just be
a commit hash.

Several places assume that the revision field can be parsed as a
ref to get the branch the project is on, which isn't true.  To fix
this we need to be able to look at the upstream and dest-branch
attributes of the repo, so we expose them through the environment
variables set in `repo forall`.

Test: manual 'repo forall' run
Bug: https://crbug.com/1032441

Change-Id: I2c039e0f4b2e0f430602932e91b782edb6f9b1ed
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/263132
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Sean McAllister <smcallis@google.com>
2020-04-16 18:42:53 +00:00
..
__init__.py subcmds: stop instantiating at import time 2020-03-17 00:08:52 +00:00
abandon.py abandon: add support for --quiet 2020-02-20 06:14:00 +00:00
branches.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
checkout.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
cherry_pick.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
diff.py diff: delete unused nested func 2020-02-17 23:49:47 +00:00
diffmanifests.py diffmanifests: honour --pretty-format when printing --raw 2020-03-13 09:50:46 +00:00
download.py download: add a --branch option 2020-03-23 00:31:10 +00:00
forall.py Expose upstream and dest-branch attributes through environment 2020-04-16 18:42:53 +00:00
gitc_delete.py flake8: Suppress "F821 undefined name" inline for Python 2 names 2020-02-15 04:45:16 +00:00
gitc_init.py pyflakes: Fix remaining "E501 line too long" warnings 2020-02-13 04:54:10 +00:00
grep.py drop old git_require checks 2020-02-12 11:44:59 +00:00
help.py subcmds: stop instantiating at import time 2020-03-17 00:08:52 +00:00
info.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
init.py init: respect --repo-rev changes 2020-03-25 04:55:50 +00:00
list.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
manifest.py Expose upstream and dest-branch attributes through environment 2020-04-16 18:42:53 +00:00
overview.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
prune.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
rebase.py avoid negative variables 2020-02-19 00:24:43 +00:00
selfupdate.py avoid negative variables 2020-02-19 00:24:43 +00:00
smartsync.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
stage.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
start.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
status.py resort a few module imports to follow PEP8 2020-02-18 06:28:12 +00:00
sync.py sync: add retry to fetch operations 2020-04-02 21:17:54 +00:00
upload.py upload: add config setting for upload notifications 2020-03-15 08:31:35 +00:00
version.py version: include tag commit date for easy reference 2020-03-31 03:27:57 +00:00