commit | 25b1da95b3907d6f9a33596dee1b94d5b225b60e | [log] [tgz] |
---|---|---|
author | Andrii Shyshkalov <[email protected]> | Thu Nov 23 00:47:54 2017 |
committer | Commit Bot <[email protected]> | Thu Nov 23 00:48:08 2017 |
tree | 4c2970ac31479284b93e7a4793f61a66666dd7ec | |
parent | 6e215cefe22e42559fb6bd96ab385920051a5ee1 [diff] |
Revert "Show GIT_TRACE for git command in bot_update.py" This reverts commit 6e215cefe22e42559fb6bd96ab385920051a5ee1. Reason for revert: seems to have broken bot_update https://ci.chromium.org/swarming/task/39ff1814b3bb5b10?server=chromium-swarm.appspot.com Original change's description: > Show GIT_TRACE for git command in bot_update.py > > GIT_TRACE=true tells us which internal git command is slow. > https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables > > I got following results in my local repository. > Let me confirm the bots show similar behavior. > > C:\src\chromium\src>set GIT_TRACE=true > > C:\src\chromium\src>git rebase-update > 21:32:36.519698 git.c:576 trace: exec: 'git-rebase-update' > 21:32:36.519698 run-command.c:626 trace: run_command: 'git-rebase-update' > 21:32:38.889848 git.c:344 trace: built-in: git 'fetch' '--multiple' 'origin' > 21:32:38.893846 run-command.c:626 trace: run_command: 'fetch' '--append' 'origin' > Fetching origin > 21:32:38.911858 git.c:344 trace: built-in: git 'fetch' '--append' 'origin' > 21:32:38.983909 run-command.c:626 trace: run_command: 'remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git' > 21:32:39.002923 git.c:576 trace: exec: 'git-remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git' > 21:32:39.003923 run-command.c:626 trace: run_command: 'git-remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git' > 21:32:43.782266 run-command.c:626 trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' > 21:32:43.827301 run-command.c:626 trace: run_command: 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 'https://chromium.googlesource.com/chromium/src.git/' > remote: Counting objects: 74400, done > remote: Finding sources: 100% (19/19) > 21:35:49.348951 run-command.c:626 trace: run_command: 'unpack-objects' '--pack_header=2,19' > 21:35:49.368985 git.c:344 trace: built-in: git 'unpack-objects' '--pack_header=2,19' > remote: Total 19 (delta 1), reused 18 (delta 1) > Unpacking objects: 100% (19/19), done. > 21:35:49.597328 run-command.c:626 trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' > 21:35:49.612375 git.c:344 trace: built-in: git 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' > From https://chromium.googlesource.com/chromium/src > e8994685157b..fd56d3ad0528 master -> origin/master > 21:35:50.281845 run-command.c:1452 run_processes_parallel: preparing to run up to 1 tasks > 21:35:50.287848 run-command.c:1484 run_processes_parallel: done > 21:35:50.309865 run-command.c:626 trace: run_command: 'gc' '--auto' > 21:35:50.328880 git.c:344 trace: built-in: git 'gc' '--auto' > 21:35:50.453967 run-command.c:1452 run_processes_parallel: preparing to run up to 1 tasks > 21:35:50.460971 run-command.c:1484 run_processes_parallel: done > 21:35:50.460971 run-command.c:626 trace: run_command: 'gc' '--auto' > 21:35:50.480985 git.c:344 trace: built-in: git 'gc' '--auto' > Rebasing: direct_goma > Rebasing: python_pool > > C:\src\chromium\src>git fetch > 21:36:23.409703 git.c:344 trace: built-in: git 'fetch' > 21:36:23.486758 run-command.c:626 trace: run_command: 'remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git' > 21:36:23.506772 git.c:576 trace: exec: 'git-remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git' > 21:36:23.506772 run-command.c:626 trace: run_command: 'git-remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git' > 21:36:28.542596 run-command.c:626 trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' > 21:36:28.578620 run-command.c:626 trace: run_command: 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 'https://chromium.googlesource.com/chromium/src.git/' > 21:36:28.601635 git.c:344 trace: built-in: git 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 'https://chromium.googlesource.com/chromium/src.git/' > remote: Counting objects: 67598, done > remote: Finding sources: 100% (28/28) > 21:39:29.787441 run-command.c:626 trace: run_command: 'unpack-objects' '--pack_header=2,28' > 21:39:29.812462 git.c:344 trace: built-in: git 'unpack-objects' '--pack_header=2,28' > remote: Total 28 (delta 2), reused 20 (delta 2) > Unpacking objects: 100% (28/28), done. > 21:39:30.083690 run-command.c:626 trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' > 21:39:30.108704 git.c:344 trace: built-in: git 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' > From https://chromium.googlesource.com/chromium/src > fd56d3ad0528..fbcc09282dc8 master -> origin/master > 21:39:30.788186 run-command.c:1452 run_processes_parallel: preparing to run up to 1 tasks > 21:39:30.795191 run-command.c:1484 run_processes_parallel: done > 21:39:30.813200 run-command.c:626 trace: run_command: 'gc' '--auto' > 21:39:30.836212 git.c:344 trace: built-in: git 'gc' '--auto' > > > Bug:749709 > Change-Id: I5b94549c42271885365c2354dc3f58399d6aebe0 > Reviewed-on: https://chromium-review.googlesource.com/786691 > Reviewed-by: Ryan Tseng <[email protected]> > Commit-Queue: Takuto Ikuta <[email protected]> [email protected],[email protected],[email protected],[email protected] Change-Id: I970ddac1fd21e904c69dc18e48169d49293b1800 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 749709 Reviewed-on: https://chromium-review.googlesource.com/786413 Reviewed-by: Andrii Shyshkalov <[email protected]> Commit-Queue: Andrii Shyshkalov <[email protected]>
Tools for working with Chromium development. It requires python 2.7.
The most important tools are:
fetch
: A gclient
wrapper to checkout a project. Use fetch --help
for more details.gclient
: A meta-checkout tool. Think repo or git submodules, except that it support OS-specific rules, e.g. do not checkout Windows only dependencies when checking out for Android. Use gclient help
for more details and README.gclient.md.git cl
: A code review tool to interact with Rietveld or Gerrit. Use git cl help
for more details and README.git-cl.md.roll-dep
: A gclient dependency management tool to submit a dep roll, updating a dependency to a newer revision.There are a lot of git utilities included.
depot_tools
updates itself automatically when running gclient
tool. To disable auto update, set the environment variable DEPOT_TOOLS_UPDATE=0
.
To update package manually, run update_depot_tools.bat
on Windows, or ./update_depot_tools
on Linux or Mac.
On Windows only, running gclient
will install git
and python
.
To contribute change for review:
git new-branch <somename> # Hack git add . git commit -a -m "Fixes goat teleporting" # find reviewers git cl owners git log -- <yourfiles> # Request a review. git cl upload -r [email protected],[email protected] --send-mail # Edit change description if needed. git cl desc # If change is approved, flag it to be committed. git cl set-commit # If change needs more work. git rebase-update ... git cl upload -t "Fixes goat teleporter destination to be Australia"
See also open bugs, open reviews, forum or report problems.
To update cpplint.py, please submit the change upstream first at https://github.com/google/styleguide/tree/gh-pages/cpplint then copy it down.