Commit Graph

40 Commits (main)

Author SHA1 Message Date
Yiwei Zhang 4a8524d1e9 error if repo command is called in Cog environment
Bug: 345486495
Change-Id: I0a03d210b5662828f65dc45bd0121c33bd6480f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5608833
Auto-Submit: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
9 months ago
Mike Frysinger 90d1d40c35 repo: stop using our repo fork
We aren't using --git-cache on bots anymore, so we shouldn't need to
point people to the CrOS fork.  Everything else is merged upstream.

Bug: b/187784544
Change-Id: Ifd261ce509b9b501c49c2b567be17e4d9014913c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5311255
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Reviewed-by: George Engelbrecht <engeg@google.com>
1 year ago
Mike Frysinger 7dc148fe3c repo: do not update citc depot_tools
This shouldn't really happen, but who knows what users might
(accidentally) try to do.

Change-Id: Ic968f133693532a816b9bd3c8c5b97cba3261bc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5309411
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Sergey Frolov <sfrolov@google.com>
Commit-Queue: Sergey Frolov <sfrolov@google.com>
1 year ago
Mike Frysinger 124bb8e53c switch to 4 space indent
Leave the recipes/ code at 2 space to match the rest of the recipes
project in other repos.

Reformatted using:
files=( $(
	git ls-tree -r --name-only HEAD | \
		grep -Ev -e '^(third_party|recipes)/' | \
		grep '\.py$';
	git grep -l '#!/usr/bin/env.*python' | grep -v '\.py$'
) )
parallel ./yapf -i -- "${files[@]}"
~/chromiumos/chromite/contrib/reflow_overlong_comments "${files[@]}"

The files that still had strings that were too long were manually
reformatted because they were easy and only a few issues.
autoninja.py
clang_format.py
download_from_google_storage.py
fix_encoding.py
gclient_utils.py
git_cache.py
git_common.py
git_map_branches.py
git_reparent_branch.py
gn.py
my_activity.py
owners_finder.py
presubmit_canned_checks.py
reclient_helper.py
reclientreport.py
roll_dep.py
rustfmt.py
siso.py
split_cl.py
subcommand.py
subprocess2.py
swift_format.py
upload_to_google_storage.py

These files still had lines (strings) that were too long, so the pylint
warnings were suppressed with a TODO.
auth.py
gclient.py
gclient_eval.py
gclient_paths.py
gclient_scm.py
gerrit_util.py
git_cl.py
presubmit_canned_checks.py
presubmit_support.py
scm.py

Change-Id: Ia6535c4f2c48d46b589ec1e791dde6c6b2ea858f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4836379
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
2 years ago
Mike Frysinger d6b52e67c9 repo: unfork our launcher
Since we have a wrapper around the launcher, we can move the two
minor changes to that:
(1) The shebang is already ignored as we run the script via
    sys.executable which is the active version of Python.
(2) The custom repo url can be set via an environment variable.

Change-Id: If9f940086ab87a6816e6a3f5c789ccb5702847c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4697333
Commit-Queue: Tim Bain <tbain@google.com>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Tim Bain <tbain@google.com>
2 years ago
Mike Frysinger 3d7cc837bd repo: restore fstrings for Python 3.6
We're looking at dropping Python 3.5 support from repo.  Lets roll
this back out in Chromium a little early to get a better idea of
who is still relying on it.

Change-Id: Idcdd5b0a957f5a2f8b146149c407c26347be0aa5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2830590
Reviewed-by: Stephane Belmon <sbelmon@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
4 years ago
Mike Frysinger aa86d0f04d repo: run launcher with existing python3 program
Debian is deleting /usr/bin/python by default, so re-use the existing
python3 interp that our wrapper was invoked with.

Bug: 1182059
Test: `./repo` still works w/out /usr/bin/python
Change-Id: I1806f2ae2f8c6fe8b5f5a95fd2e50735d6e3196a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2715994
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
4 years ago
Mike Frysinger 3b055d329e repo: use str(Path) for Python 3.5 a little longer
Give people one more month before we make 3.6 a hard requirement.

Change-Id: Ieb471b917c5ef5b9cb20b321305c4c13af675109
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2575635
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
4 years ago
Mike Frysinger d1655710f7 repo: avoid fstrings for Python 3.5 a little longer
Give people one more month before we make 3.6 a hard requirement.

Change-Id: I696bf3f0edbe64d6294dd626fc9ff16c9e44fd87
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2570017
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
4 years ago
Mike Frysinger 80cea4f5fc repo: only warn if update_depot_tools does not exist
It looks like some bots don't have this for whatever reason.

Bug: 1148984
Change-Id: I7ff826e0a0df78e3be9e1f84698b69574c75f71c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2567384
Reviewed-by: Sean McAllister <smcallis@google.com>
Reviewed-by: LaMont Jones <lamontjones@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
4 years ago
Mike Frysinger eb386eb3d2 Reland "repo: auto-update depot_tools when used"
This is a reland of 19512276d2.
It includes an update to .gitattributes for recipes.

Original change's description:
> repo: auto-update depot_tools when used
>
> Since gclient automatically syncs this checkout when used,
> have repo do the same for CrOS users.
>
> Bug: 1148984
> Test: ran and saw it auto-update when used externally
> Test: ran and saw it not auto-update when used inside of a repo checkout
> Change-Id: I56b9a45ef3a9ed501f6277e8f8357d4719cf2557
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2537164
> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
> Reviewed-by: Michael Mortensen <mmortensen@google.com>
> Commit-Queue: Mike Frysinger <vapier@chromium.org>

Bug: 1148984
Change-Id: Ia7844016cb04d3197e51ad05da64c885cf3277a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2561229
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
4 years ago
Andrii Shyshkalov dc7b108da6 Revert "repo: auto-update depot_tools when used"
This reverts commit 19512276d2.

Reason for revert: broke ART bots.
Bug: 1153114

Original change's description:
> repo: auto-update depot_tools when used
>
> Since gclient automatically syncs this checkout when used,
> have repo do the same for CrOS users.
>
> Bug: 1148984
> Test: ran and saw it auto-update when used externally
> Test: ran and saw it not auto-update when used inside of a repo checkout
> Change-Id: I56b9a45ef3a9ed501f6277e8f8357d4719cf2557
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2537164
> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
> Reviewed-by: Michael Mortensen <mmortensen@google.com>
> Commit-Queue: Mike Frysinger <vapier@chromium.org>

TBR=vapier@chromium.org,ehmaldonado@chromium.org,mmortensen@google.com,infra-scoped@luci-project-accounts.iam.gserviceaccount.com,mmortensen@chromium.org

Change-Id: Ic0ac9155e3acde87966f518213a5a8440e167295
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1148984
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2560955
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
Commit-Queue: Andrii Shyshkalov <tandrii@google.com>
4 years ago
Mike Frysinger 19512276d2 repo: auto-update depot_tools when used
Since gclient automatically syncs this checkout when used,
have repo do the same for CrOS users.

Bug: 1148984
Test: ran and saw it auto-update when used externally
Test: ran and saw it not auto-update when used inside of a repo checkout
Change-Id: I56b9a45ef3a9ed501f6277e8f8357d4719cf2557
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2537164
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
4 years ago
Mike Frysinger cf77d6e387 repo: update to 2.8 launcher
Bug: None
Test: `repo sync` still works
Change-Id: Idfd893d3e7a81a4a2526eb61b9d45641988c32c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2212957
Reviewed-by: Sean McAllister <smcallis@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
5 years ago
Mike Frysinger 4ecdd22b0b repo: update to 2.5 launcher
Bug: None
Test: `repo sync` still works
Change-Id: I472e5f8753f96f1ad45c9782e4ac30b71a620ab5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2120252
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
5 years ago
Mike Frysinger 56c9bd5a73 repo: update to 2.4 launcher
Bug: None
Test: `repo sync` still works
Change-Id: Ibef61ccda4640dfc6a28b9a919e50f7a8162bf7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2062618
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
5 years ago
Mike Frysinger da8eec5db3 repo: update to 2.3 launcher
This pulls the latest version from upstream.  Largely should be
bugfixes, but there's a few new hot features too!

Bug: https://crbug.com/gerrit/10418
Test: `repo sync` still works
Change-Id: Icd901b490857083f047ce900990769efdf5f269b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2052975
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
5 years ago
Mike Frysinger 64c5af3a71 repo: update to 2.0 launcher
This pulls the latest version from upstream.

This drops the custom keys Chromium has been carrying.
We switched our release signing over to the official key,
so there's no need for ours anymore.

The new version will attempt to use Python 3 if available
and whine if it's not.  It shouldn't cause errors, just new
warnings, but it should help us track down old systems.

Bug: https://crbug.com/gerrit/10418
Test: `repo sync` still works
Change-Id: I915d0874a1642880831964f91c4632f9d17a1e4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2044341
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
5 years ago
Nico Weber 64ae6993f7 Reland "repo: pull in updates from latest release"
This reverts commit 2c80d01be6.

Reason for revert: Didn't help.

Original change's description:
> Revert "repo: pull in updates from latest release"
> 
> This reverts commit 8baaec47e3.
> 
> Reason for revert: Speculative, to see if this unbreaks
> https://ci.chromium.org/p/infra/builders/try/ChromiumOS%20downstream%20Recipe%20Roll%20tester%20from%20Depot%20Tools
> 
> Original change's description:
> > repo: pull in updates from latest release
> > 
> > These are mostly about rolling in Python 3 encoding fixes.
> > 
> > Bug: None
> > Test: `repo sync` works w/Python 3
> > Change-Id: I7d749a3a62523a7c802fb0ed7dcd383868df1d6f
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1809420
> > Commit-Queue: Mike Frysinger <vapier@chromium.org>
> > Reviewed-by: Alex Klein <saklein@chromium.org>
> 
> TBR=vapier@chromium.org,saklein@chromium.org
> 
> Change-Id: I7b446fe0460390dcefe6248f1ef7a004335bb796
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: None
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1814467
> Reviewed-by: Nico Weber <thakis@chromium.org>
> Commit-Queue: Nico Weber <thakis@chromium.org>

TBR=vapier@chromium.org,thakis@chromium.org,saklein@chromium.org

Change-Id: I5e1ff54478d8597c33901f8d7a2d7bcc6c203d20
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: None
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1814469
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
6 years ago
Nico Weber 2c80d01be6 Revert "repo: pull in updates from latest release"
This reverts commit 8baaec47e3.

Reason for revert: Speculative, to see if this unbreaks
https://ci.chromium.org/p/infra/builders/try/ChromiumOS%20downstream%20Recipe%20Roll%20tester%20from%20Depot%20Tools

Original change's description:
> repo: pull in updates from latest release
> 
> These are mostly about rolling in Python 3 encoding fixes.
> 
> Bug: None
> Test: `repo sync` works w/Python 3
> Change-Id: I7d749a3a62523a7c802fb0ed7dcd383868df1d6f
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1809420
> Commit-Queue: Mike Frysinger <vapier@chromium.org>
> Reviewed-by: Alex Klein <saklein@chromium.org>

TBR=vapier@chromium.org,saklein@chromium.org

Change-Id: I7b446fe0460390dcefe6248f1ef7a004335bb796
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: None
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1814467
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
6 years ago
Mike Frysinger 8baaec47e3 repo: pull in updates from latest release
These are mostly about rolling in Python 3 encoding fixes.

Bug: None
Test: `repo sync` works w/Python 3
Change-Id: I7d749a3a62523a7c802fb0ed7dcd383868df1d6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1809420
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
6 years ago
Mike Frysinger afe292c860 repo: pull in v1.13.4 changes
This is mostly for Python 3 improvements.

Bug: gerrit:10418
Change-Id: Ice96b8dc5f700015ae6ec53c0e5b86700bcf6532
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1734587
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
6 years ago
Mike Frysinger 58649e3417 repo: update launcher to v1.13.1
This rolls a few changes from upstream noticed by early testing.

Bug: 900461
Change-Id: Iea568be41e3149a667fba655576bdd591b353079
Reviewed-on: https://chromium-review.googlesource.com/c/1387706
Reviewed-by: Ned Nguyen <nednguyen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
6 years ago
Don Garrett 24f2cc0de1 repo: Update the repo tool to 1.24.
R=-owners

Bug: None
Change-Id: I9ff818b65b1c9a2a3a19f65932ffac4957dab0cc
Reviewed-on: https://chromium-review.googlesource.com/c/1382934
Auto-Submit: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Don Garrett <dgarrett@chromium.org>
6 years ago
vapier ae39f566ca repo: update to v1.12.34-cr2
We've synced our fork of repo to upstream. This change copies the new
version into depot_tools.

BUG=chromium:632203
TEST=`repo sync` still works

Review-Url: https://codereview.chromium.org/2402193002
9 years ago
vapier 7475196d4c repo: update to v1.12.17-cr1
We've synced our fork of repo to upstream. This change copies the new
version into depot_tools.

BUG=chromium:632203
TEST=`repo sync` still works
TEST=`repo sync` with a tag signed by me works
TEST=`repo init` with my tag is accepted

Review-Url: https://codereview.chromium.org/2340073002
9 years ago
mmoss@chromium.org c349971db4 Fix some path processing to work better on Windows.
R=hinoka@chromium.org
BUG=555036

Review URL: https://codereview.chromium.org/1471973004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@297698 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
szager@chromium.org 33c182be2d Add pgp key for davidjames to repo.
This incorporates:

https://chromium-review.googlesource.com/#/c/216850

R=davidjames@chromium.org,petermayo@chromium.org
BUG=

Review URL: https://codereview.chromium.org/554723003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@291857 0039d316-1c4b-4281-b951-d872f2087c98
11 years ago
akeshet@google.com 3bdfbeb0fe Update to repo version v1.12.13-cr1
We've synced our fork of repo to upstream. This change copies the new
version into depot_tools.

BUG=chromium:339665
TEST=repo sync works

Review URL: https://codereview.chromium.org/146723003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@249277 0039d316-1c4b-4281-b951-d872f2087c98
11 years ago
szager@chromium.org 538283f78a Add new maintainer key and force repo self-update on sync.
This is necesary to force an existing repo working directory to check
out a new version of the repo tool which has been signed with a new
key.

R=cmp@chromium.org

Review URL: https://codereview.chromium.org/22909004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@217347 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
ferringb@google.com 8db6c88c2b Pull in repo v1.18 script for matching repo v1.11.1 update.
BUG=chromium-os:37471
TEST=manual invocations, tracking upstream code, running these
     versions on builders for validation in addition.

Review URL: https://chromiumcodereview.appspot.com/11660027

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@174609 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
ferringb@google.com 79245bf553 Upgrade repo script to v1.17.
This is backwards compatible, and should be done prior
to upgrading repo's internals to 1.9.4.

BUG=chromium-os:31841
TEST=manual validation

Review URL: https://chromiumcodereview.appspot.com/10541155

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@142238 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
ferringb@google.com a3fcf20924 Revert repo back to an upstream we control
The purpose of this is so that cros can roll out repo updates at our
own pace (including testing), rather than being at the mercy of android
project rolling something out that may break our setup.

BUG=chromium-os:24413

Review URL: http://codereview.chromium.org/9021045

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@115533 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
jeffbailey@chromium.org ad39056fb9 Update version of repo. Most importantly this takes repo from
the current canonical upstream.  The Chromium mirror is out of date.
Review URL: http://codereview.chromium.org/8540026

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109742 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
tonyg@google.com 0d16357c70 Update repo.git URL from broken kernel.org to Chromium hosted.
Review URL: http://codereview.chromium.org/7779014

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@99564 0039d316-1c4b-4281-b951-d872f2087c98
14 years ago
maruel@chromium.org b25b69b8d0 Add --depth option to repo.
See related repo change:
  https://review.source.android.com/#change,22722

Review URL: http://codereview.chromium.org/7111045
Patch from Doug Anderson <dianders@chromium.org>.

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@89361 0039d316-1c4b-4281-b951-d872f2087c98
14 years ago
msb@chromium.org 2c64b71269 Update the repo wrapper
BUG=
TEST=

Review URL: http://codereview.chromium.org/6179004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@71101 0039d316-1c4b-4281-b951-d872f2087c98
14 years ago
scottz@google.com 05d5a80a2e Modify repo to use http instead of git, some of or slaves cannot communicate over git
Review URL: http://codereview.chromium.org/3173006

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@55778 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
msb@chromium.org fe047ec5fa gclient: make repo executable
Review URL: http://codereview.chromium.org/3038015

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@53400 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
msb@chromium.org 38b04f839e Add the repo tool which is going to be used for iterative tasks across multiple git repos
Review URL: http://codereview.chromium.org/2792012

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@52240 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago