Josip Sokcevic
06001cda91
[py2] Drop envvar to run scripts with py2
...
R=aravindvasudev@google.com
Change-Id: I4c2c8265296f8fa1c2ce9a1e4a0b31d1f1dd39f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4522398
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com >
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org >
2023-05-11 17:55:43 +00:00
Andrew Grieve
c2a4f5db62
Skip gclient auto-update for "getdep", "root", "help", "--help"
...
These are all things I would expect to not hit the network.
Bug: None
Change-Id: I44bddd94e8da13df57f3cd068def9a5e51774bc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4161184
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org >
Auto-Submit: Andrew Grieve <agrieve@chromium.org >
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org >
2023-01-12 17:28:44 +00:00
Andrey Kosyakov
c0169f32a3
Skip depot_tools update for gclient recurse
...
update_depot_tools has become chatty since https://crrev.com/c/3556588 ,
which interfers with processing output from commands being recursed.
Change-Id: I47ea49fbe2b1c196562ef8389d981abe8eb5788b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3561658
Commit-Queue: Andrey Kosyakov <caseq@chromium.org >
Auto-Submit: Andrey Kosyakov <caseq@chromium.org >
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
2022-03-30 18:21:57 +00:00
Josip Sokcevic
c621315d17
Make Python 3 default on Windows
...
Users can still set GCLIENT_PY3=0 to use Python 2.
R=ehmaldonado@chromium.org
Change-Id: Ic7657a091bfe3b9c426ab36063b106aadf2d1c84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2161266
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
2020-04-22 21:08:10 +00:00
Edward Lesmes
df70c81527
depot_tools: Simplify MinGW check.
...
Check `if [[ $(uname -s) = MINGW* ]]` instead of using
grepping and an additional variable.
Change-Id: I6f2cfbb6743357125e6672b77667ee5e36d3d81e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2127674
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
2020-03-30 19:27:03 +00:00
Edward Lesmes
17aaea21d4
Reland "depot_tools: Run using Python 3 by default."
...
This reverts commit e2ac022f0b .
git-cache issues were solved by https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2120966
Original change's description:
> Reland "depot_tools: Run using Python 3 by default."
>
> This is a reland of 01ed358917
>
> * python_runner.sh, gclient, roll-dep and fetch will call vpython
> (instead of vpython3) when running on Windows under git-bash.
> * vpython3 now detects when running on Windows under git-bash and
> executes vpython3.bat instead.
> * vpython3.bat calls python3.exe directly instead of calling python3.bat.
>
> Original change's description:
> > depot_tools: Run using Python 3 by default.
> >
> > Run gclient, roll-dep, fetch and custom git commands (i.e. git-cl, git-rebase-update, git-new-branch, etc.)
> > using vpython3 by default.
> >
> > Change-Id: I4eecddafa6ca4c5f82ec097615c79d2a741613e7
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2113550
> > Reviewed-by: Anthony Polito <apolito@google.com >
> > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
>
> Change-Id: I9829141d7ea26a67e655264430151f493e73a930
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2118418
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> Reviewed-by: Anthony Polito <apolito@google.com >
Change-Id: Iff02533f0a11062f335a010c074043c720d5b2ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2121304
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2020-03-26 16:51:25 +00:00
Josip Sokcevic
e2ac022f0b
Revert "Reland "depot_tools: Run using Python 3 by default.""
...
This reverts commit e9013eeb3d .
Reason for revert: https://crbug.com/1064547
Original change's description:
> Reland "depot_tools: Run using Python 3 by default."
>
> This is a reland of 01ed358917
>
> * python_runner.sh, gclient, roll-dep and fetch will call vpython
> (instead of vpython3) when running on Windows under git-bash.
> * vpython3 now detects when running on Windows under git-bash and
> executes vpython3.bat instead.
> * vpython3.bat calls python3.exe directly instead of calling python3.bat.
>
> Original change's description:
> > depot_tools: Run using Python 3 by default.
> >
> > Run gclient, roll-dep, fetch and custom git commands (i.e. git-cl, git-rebase-update, git-new-branch, etc.)
> > using vpython3 by default.
> >
> > Change-Id: I4eecddafa6ca4c5f82ec097615c79d2a741613e7
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2113550
> > Reviewed-by: Anthony Polito <apolito@google.com >
> > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
>
> Change-Id: I9829141d7ea26a67e655264430151f493e73a930
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2118418
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> Reviewed-by: Anthony Polito <apolito@google.com >
TBR=ehmaldonado@chromium.org ,ajp@chromium.org ,apolito@google.com ,infra-scoped@luci-project-accounts.iam.gserviceaccount.com ,sokcevic@google.com
Change-Id: Ia382d6e4e330f5a7a7a62e4d369c3fa16fc17333
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2120956
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
2020-03-25 16:57:31 +00:00
Edward Lesmes
e9013eeb3d
Reland "depot_tools: Run using Python 3 by default."
...
This is a reland of 01ed358917
* python_runner.sh, gclient, roll-dep and fetch will call vpython
(instead of vpython3) when running on Windows under git-bash.
* vpython3 now detects when running on Windows under git-bash and
executes vpython3.bat instead.
* vpython3.bat calls python3.exe directly instead of calling python3.bat.
Original change's description:
> depot_tools: Run using Python 3 by default.
>
> Run gclient, roll-dep, fetch and custom git commands (i.e. git-cl, git-rebase-update, git-new-branch, etc.)
> using vpython3 by default.
>
> Change-Id: I4eecddafa6ca4c5f82ec097615c79d2a741613e7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2113550
> Reviewed-by: Anthony Polito <apolito@google.com >
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Change-Id: I9829141d7ea26a67e655264430151f493e73a930
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2118418
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Reviewed-by: Anthony Polito <apolito@google.com >
2020-03-24 22:32:08 +00:00
Peter Kasting
2b2aec6506
Revert "depot_tools: Run using Python 3 by default."
...
This reverts commit 01ed358917 .
Reason for revert: Broke tools on Windows with bash
Original change's description:
> depot_tools: Run using Python 3 by default.
>
> Run gclient, roll-dep, fetch and custom git commands (i.e. git-cl, git-rebase-update, git-new-branch, etc.)
> using vpython3 by default.
>
> Change-Id: I4eecddafa6ca4c5f82ec097615c79d2a741613e7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2113550
> Reviewed-by: Anthony Polito <apolito@google.com >
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
TBR=ehmaldonado@chromium.org ,ajp@chromium.org ,apolito@google.com ,infra-scoped@luci-project-accounts.iam.gserviceaccount.com ,sokcevic@google.com
Change-Id: If29ad72feaa215b8b282f2f6c9911700dd2f228c
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2116728
Reviewed-by: John Budorick <jbudorick@chromium.org >
Commit-Queue: Peter Kasting <pkasting@chromium.org >
2020-03-24 01:12:08 +00:00
Edward Lemur
01ed358917
depot_tools: Run using Python 3 by default.
...
Run gclient, roll-dep, fetch and custom git commands (i.e. git-cl, git-rebase-update, git-new-branch, etc.)
using vpython3 by default.
Change-Id: I4eecddafa6ca4c5f82ec097615c79d2a741613e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2113550
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2020-03-23 17:41:56 +00:00
Edward Lemur
780e6bf8d4
gclient: Allow setting GCLIENT_PY3 to 0 to run on Python 2.
...
As we update scripts to run Python 3 by default, we want to provide
developers a way to execute scripts on Python 2 if they encounter
any problems.
This change only affects Linux/Mac and not Windows developers.
Bug: 984182
Change-Id: I7c7bd2a45ef50e340f6f2b85e9bc8b63f22d8678
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2079701
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2020-02-28 00:32:05 +00:00
Edward Lemur
b9aca9494e
gclient: Skip calling update_depot_tools if DEPOT_TOOLS_UPDATE is 0.
...
Change-Id: Id33839077b3bc8748185d93ab13ed028a05b7fd1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1825994
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org >
2019-10-01 22:13:03 +00:00
Edward Lemur
39058571f7
Reland "gclient: Add a GCLIENT_PY3 env var to allow users to execute gclient using Python 3."
...
This is a reland of e656e98831
Original change's description:
> gclient: Add a GCLIENT_PY3 env var to allow users to execute gclient using Python 3.
>
> Bug: 1008202
> Change-Id: I23dd70b72089a09c2a7cdc74e2a63c135a924ebe
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1825996
> Reviewed-by: Anthony Polito <apolito@google.com >
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org >
Bug: 1008202
Change-Id: I5181a7f8efb39bdd6adc99db90663cf3cf3cd0bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1828334
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-09-27 21:47:49 +00:00
Edward Lesmes
2b82936829
Revert "gclient: Add a GCLIENT_PY3 env var to allow users to execute gclient using Python 3."
...
This reverts commit e656e98831 .
Reason for revert: Defaults to Python 3 unless GCLIENT_PY3 is 1...
Original change's description:
> gclient: Add a GCLIENT_PY3 env var to allow users to execute gclient using Python 3.
>
> Bug: 1008202
> Change-Id: I23dd70b72089a09c2a7cdc74e2a63c135a924ebe
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1825996
> Reviewed-by: Anthony Polito <apolito@google.com >
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org >
TBR=ehmaldonado@chromium.org ,apolito@google.com
Change-Id: I8c63d8c9e0be84b1286275142fab1885597b1551
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1008202
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1828330
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-09-27 01:02:47 +00:00
Edward Lemur
e656e98831
gclient: Add a GCLIENT_PY3 env var to allow users to execute gclient using Python 3.
...
Bug: 1008202
Change-Id: I23dd70b72089a09c2a7cdc74e2a63c135a924ebe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1825996
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org >
2019-09-26 21:08:13 +00:00
Edward Lesmes
7149d23621
Revert "depot_tools: Run Python scripts using vpython (Part 2)"
...
This reverts commit 3c814957ee .
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> depot_tools: Run Python scripts using vpython (Part 2)
>
> Tbr: iannucci@chromium.org
> Bug: 984182
> Change-Id: I2e8469f8ee0acd6a54109697d5a6b76faf24fa42
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1748590
> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
TBR=iannucci@chromium.org ,ehmaldonado@chromium.org
Change-Id: Ic683543a04b45f733b48d6c43453fc8dff511d09
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1749852
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-08-12 21:04:04 +00:00
Edward Lemur
3c814957ee
depot_tools: Run Python scripts using vpython (Part 2)
...
Tbr: iannucci@chromium.org
Bug: 984182
Change-Id: I2e8469f8ee0acd6a54109697d5a6b76faf24fa42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1748590
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-08-12 19:43:00 +00:00
James Darpinian
f994d87e56
Revert "Reland "depot_tools: Move six to depot_tools' .vpython""
...
This reverts commit d52b306f84 .
Reason for revert: Broke ANGLE CQ with "ImportError: No module named six"
Example: https://ci.chromium.org/p/angle/builders/try/mac-dbg/6758
Original change's description:
> Reland "depot_tools: Move six to depot_tools' .vpython"
>
> This is a reland of 3a98df0bdd
>
> Original change's description:
> > depot_tools: Move six to depot_tools' .vpython
> >
> > Bug: 984182
> > Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
> > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> > Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
> > Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
> > Reviewed-by: Michael Moss <mmoss@chromium.org >
>
> Bug: 984182
> Change-Id: Ibf7034201e65a18f833cf1e7432f81a903a99aae
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1732880
> Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
TBR=iannucci@chromium.org ,mmoss@chromium.org ,tandrii@chromium.org ,ehmaldonado@chromium.org
Change-Id: Id4488249b607441df9f00aa51f4a1f2bc4ad5cfd
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1739582
Reviewed-by: Kenneth Russell <kbr@chromium.org >
Commit-Queue: Kenneth Russell <kbr@chromium.org >
2019-08-06 18:57:40 +00:00
Edward Lemur
d52b306f84
Reland "depot_tools: Move six to depot_tools' .vpython"
...
This is a reland of 3a98df0bdd
Original change's description:
> depot_tools: Move six to depot_tools' .vpython
>
> Bug: 984182
> Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
> Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
> Reviewed-by: Michael Moss <mmoss@chromium.org >
Bug: 984182
Change-Id: Ibf7034201e65a18f833cf1e7432f81a903a99aae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1732880
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-08-06 17:55:59 +00:00
Edward Lesmes
365720e237
Revert "depot_tools: Move six to depot_tools' .vpython"
...
This reverts commit 3a98df0bdd .
Reason for revert:
Can't roll into skia and build_internal
Original change's description:
> depot_tools: Move six to depot_tools' .vpython
>
> Bug: 984182
> Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
> Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
> Reviewed-by: Michael Moss <mmoss@chromium.org >
TBR=iannucci@chromium.org ,mmoss@chromium.org ,tandrii@chromium.org ,ehmaldonado@chromium.org
Change-Id: I51e502e6f7633a6f26898f1ecbcd86ccf9c7c123
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1718996
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-07-25 20:51:36 +00:00
Edward Lemur
3a98df0bdd
depot_tools: Move six to depot_tools' .vpython
...
Bug: 984182
Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
Reviewed-by: Michael Moss <mmoss@chromium.org >
2019-07-25 19:04:34 +00:00
Oleh Prypin
684313d6a3
gclient setdep doesn't need to update_depot_tools
...
Bug: chromium:836566
Change-Id: I752633cd0f5334b4592e1a1f1d4506bf89c7716d
Reviewed-on: https://chromium-review.googlesource.com/1257841
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Oleh Prypin <oprypin@google.com >
2018-10-03 18:02:12 +00:00
iannucci@chromium.org
3466b0d6a6
Make msys depot_tools upgrade process smoother.
...
R=agable@chromium.org , dnj@chromium.org , mmoss@chromium.org
BUG=600028
Review URL: https://codereview.chromium.org/1848353003 .
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299677 0039d316-1c4b-4281-b951-d872f2087c98
2016-04-04 19:50:20 +00:00
iannucci@chromium.org
405b87e91b
Revert of git_cl/gclient: use python2 (patchset #3 id:40001 of https://codereview.chromium.org/1437773002/ )
...
Reason for revert:
breaks git-bash on windows
Original issue's description:
> git_cl/gclient: use python2
>
> Newer distros are defaulting /usr/bin/python to python3, so use python2
> explicitly so we continue working.
>
> Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=297535
TBR=stip@chromium.org ,sergeyberezin@chromium.org ,vapier@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/1442583004
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@297544 0039d316-1c4b-4281-b951-d872f2087c98
2015-11-12 18:08:34 +00:00
vapier@chromium.org
b0fe123965
git_cl/gclient: use python2
...
Newer distros are defaulting /usr/bin/python to python3, so use python2
explicitly so we continue working.
Review URL: https://codereview.chromium.org/1437773002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@297535 0039d316-1c4b-4281-b951-d872f2087c98
2015-11-12 05:50:01 +00:00
agable@chromium.org
69b67588c4
Run "svn revert" in update_depot_tools --force
...
R=iannucci@chromium.org , szager@chromium.org , pdr@chromium.org
BUG=435729
Review URL: https://codereview.chromium.org/756233003
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@293112 0039d316-1c4b-4281-b951-d872f2087c98
2014-11-25 23:34:41 +00:00
rnk@chromium.org
6911307d2d
Revert of Fetch Windows tools on Cygwin and use that Python for some scripts ( https://codereview.chromium.org/140843004/ )
...
Reason for revert:
This broke auto-updating depot_tools on Cygwin due to use of exec
Original issue's description:
> Fetch Windows tools on Cygwin and use that Python for some scripts
>
> Tested by running gclient sync a couple of times from a Cygwin shell.
>
> R=dpranke@chromium.org
> CC=scottmg@chromium.org ,thakis@chromium.org ,maruel@chromium.org
> BUG=335180
>
> Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=245315
TBR=dpranke@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=335180
Review URL: https://codereview.chromium.org/132883007
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@245330 0039d316-1c4b-4281-b951-d872f2087c98
2014-01-16 21:35:01 +00:00
rnk@chromium.org
a957e27dc1
Fetch Windows tools on Cygwin and use that Python for some scripts
...
Tested by running gclient sync a couple of times from a Cygwin shell.
R=dpranke@chromium.org
CC=scottmg@chromium.org ,thakis@chromium.org ,maruel@chromium.org
BUG=335180
Review URL: https://codereview.chromium.org/140843004
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@245315 0039d316-1c4b-4281-b951-d872f2087c98
2014-01-16 20:59:47 +00:00
ilevy@chromium.org
38c4426ca4
Fix gclient "skip update on certain commands", again
...
Not all developers have =~ support in bash, apparently.
Switching to standard globbing.
R=tapted
TBR=maruel
Review URL: https://codereview.chromium.org/11369147
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@166867 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-09 06:53:41 +00:00
ilevy@chromium.org
7e37d7ebc1
Fix update exclusions for gclient
...
Regex matched substrings, so 'gclient', and 'gclient g' were
excluded.
TBR=maruel@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11370007
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@166799 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-08 23:31:51 +00:00
ilevy@chromium.org
3addce3094
Exclude some gclient commands from auto-update
...
In an effort to make some local commands faster, I propose we
exclude them from network dependent update step.
R=maruel@chromium.org
BUG=
Review URL: https://chromiumcodereview.appspot.com/11312143
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@166793 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-08 23:02:13 +00:00
maruel@chromium.org
3abe79b9f4
Enable PYTHONDONTWRITEBYTECODE=1 as much as possible.
...
Since we clobber the .pyc, it's not useful to generate them in the first place.
R=dpranke@chromium.org
BUG=
TEST=
Review URL: http://codereview.chromium.org/8060026
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@103066 0039d316-1c4b-4281-b951-d872f2087c98
2011-09-28 00:55:18 +00:00
bradnelson@google.com
28e0e9408d
Changing entry points to use cygwin python (as gyp will now fall back on
...
hermetic python).
BUG=http://code.google.com/p/gyp/issues/detail?id=178
TEST=None
Review URL: http://codereview.chromium.org/6557004
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@75768 0039d316-1c4b-4281-b951-d872f2087c98
2011-02-23 18:49:54 +00:00
bradnelson@google.com
cca5582619
Unconditionally run gclient.bat on cygwin, as gyp doesn't work right when
...
run through cygwin python anymore (and fails subtlety).
BUG=None
TEST=None
RS=pkasting
Review URL: http://codereview.chromium.org/6400002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@72718 0039d316-1c4b-4281-b951-d872f2087c98
2011-01-26 23:36:23 +00:00
maruel@chromium.org
3bb0d6fa0b
Change shebangs to allow the tools to be used out of the box without modification
...
on system that don't hard code bash's path.
For example, BSD's bash lives in /usr/local/bin on freebsd & openbsd.
Patch contributed by Sevan Janiyan (venture37 at gmail)
TEST=didn't break ubuntu users
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@66124 0039d316-1c4b-4281-b951-d872f2087c98
2010-11-15 17:01:52 +00:00
scottbyer@chromium.org
7526fe3b28
A refactoring left cygwin busted.
...
Create an update_depot_tools.bat file to use for updated when on cygwin, and
properly call it from the update_depot_tools shell script and gclient batch
files.
BUG=none
TEST=gclient sync and git cl work again on cygwin. Can also turn echo on in update_depot_tools.bat to verify updating working correctly.
Review URL: http://codereview.chromium.org/3856006
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@63234 0039d316-1c4b-4281-b951-d872f2087c98
2010-10-20 18:05:30 +00:00
msb@chromium.org
2a94904744
Isolate depot_tools update into a separate script.
...
Also, modify git-cl to also update depot_tools. Otherwise, the git-cl
script never gets updated for folks that only use git-cl but
not gclient. This fixes a bug ChromiumOS developers are currently seeing
where there git-cl checkout is still pointing to src.chromium.org
and not git.chromium.org.
BUG=none
TEST=Verified that git-cl help and gclient help work.
Review URL: http://codereview.chromium.org/3817011
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@62948 0039d316-1c4b-4281-b951-d872f2087c98
2010-10-18 18:04:01 +00:00
msb@chromium.org
d065eccd01
gclient: update git-cl whenever git-cl is run and not when gclient is run
...
Rather than updating git-cl whenever gclient is invoked, update it
whenever git-cl is invoked.
In the chromium-os workflow, folks often run git-cl but rarely run gclient.
This results in folks running an older git-cl which may not
have the latest features/fixes.
TEST=
Tested that git-cl is updated when it is stale, git-cl is cloned when it doesn't exist and is not updated when DEPOT_TOOLS_UPDATE=0
Review URL: http://codereview.chromium.org/2962013
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@52236 0039d316-1c4b-4281-b951-d872f2087c98
2010-07-13 22:46:06 +00:00
nasser@codeaurora.org
e42a1939f1
Fix for git-svn rebase bug
...
git-svn rebase will always output 'Current branch <> is up-to-date' when the
branch is up-to-date, even if you pass the --quiet flag(s). This change
specifically squelches that message.
Review URL: http://codereview.chromium.org/555183
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37696 0039d316-1c4b-4281-b951-d872f2087c98
2010-02-01 16:14:28 +00:00
maruel@chromium.org
8d4c15c3ba
Change to a git repo before checking git-svn version
...
TEST=none
BUG=none
R=maruel
Patch contributed by Nasser <nasser@codeaurora>
Review URL: http://codereview.chromium.org/530001
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35817 0039d316-1c4b-4281-b951-d872f2087c98
2010-01-08 20:29:06 +00:00
maruel@chromium.org
8dd7cc5c2e
git svn --version doesn't work when called outside a git checkout.
...
TEST=none
BUG=none
TBR=nasser
Review URL: http://codereview.chromium.org/523166
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35800 0039d316-1c4b-4281-b951-d872f2087c98
2010-01-08 18:06:50 +00:00
maruel@chromium.org
f3909bf2d3
Check for the existence of git before running commands.
...
Checks in the gclient wrapper and when running any gclient git command.
TEST=none
BUG=none
Patch contributed by Nasser <nasser@codeaurora>
Review URL: http://codereview.chromium.org/518064
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35762 0039d316-1c4b-4281-b951-d872f2087c98
2010-01-08 01:14:51 +00:00
thestig@chromium.org
6df3334ceb
Mark depot_tools scripts as bash scripts.
...
BUG=13668
TEST=none
Review URL: http://codereview.chromium.org/203075
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26262 0039d316-1c4b-4281-b951-d872f2087c98
2009-09-15 20:39:14 +00:00
chase@chromium.org
cabf2adf7b
Replace git-try stub with actual git-try script.
...
BUG=none
TEST=none
TBR=maruel
Review URL: http://codereview.chromium.org/173246
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24060 0039d316-1c4b-4281-b951-d872f2087c98
2009-08-22 01:26:31 +00:00
sky@chromium.org
2191458515
Gets gclient to work in emacs again.
...
Also fixes bug where gclient fails because options isn't defined.
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19498 0039d316-1c4b-4281-b951-d872f2087c98
2009-06-29 17:47:51 +00:00
maruel@chromium.org
717e1ce5a8
Use git svn rebase instead of git svn fetch & git svn merge
...
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/147014
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19277 0039d316-1c4b-4281-b951-d872f2087c98
2009-06-25 19:52:56 +00:00
maruel@chromium.org
522ca09c54
Reapply 18633 that was reverted in 18634 because bootstrap/gclient.sh was not found.
...
Now update git depot_tools checkouts, also add automatic update for git-cl-repo and git-try-repo.
The difference with 18633 is that it leaves bootstrap/gclient.sh along. I'll remove it in a month or so to not break anyone in the meantime.
TEST=none
BUG=none
TBR=evan
Review URL: http://codereview.chromium.org/129001
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@18637 0039d316-1c4b-4281-b951-d872f2087c98
2009-06-17 18:35:18 +00:00
maruel@chromium.org
0a3488a5a8
Revert 18633
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@18634 0039d316-1c4b-4281-b951-d872f2087c98
2009-06-17 18:03:50 +00:00
maruel@chromium.org
25a8081d37
Now update git depot_tools checkouts, also add automatic update for git-cl-repo and git-try-repo.
...
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/125259
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@18633 0039d316-1c4b-4281-b951-d872f2087c98
2009-06-17 17:59:38 +00:00
maruel@chromium.org
775a79c5f0
It seems it helps on certain cygwin setup.
...
Ah cygwin...
Patch contributed by cmp@google.com
TBR=nsylvain
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/125249
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@18613 0039d316-1c4b-4281-b951-d872f2087c98
2009-06-17 13:10:48 +00:00