Commit Graph

3243 Commits (b4cd1960d52e3b2128fcdbf6ad792b770c6649ab)
 

Author SHA1 Message Date
recipe-roller@chromium.org ae9e80cc6b Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299159 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
phajdan.jr@chromium.org 6196039380 depot_tools: expose path to download_from_google_storage
BUG=585401

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299158 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
martiniss@chromium.org 3ce9b4446d Make CACHE_DIR set by default in most gclient configs.
This is needed because bot_update changed from getting the cache directory from
the global path module to the gclient config.

BUG=589140

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299143 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
nodir@chromium.org baff4e1c8c git-cl-try: print proper access denied error msg
git-cl-try does not properly print error message when the response
status code is 403, because response parsing is broken.
Fix response parsing.

R=sheyang@chromium.org, tandrii@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299137 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
szager@chromium.org 88be9a1c5a Use gclient's git_cache setting in bot_update/api.py
BUG=589140
R=agable@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299120 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 1062500617 git cl: stop downloading Gerrit commit-hook with --squash mode.
BUG=579176

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299117 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 675bec320d Update TODO for cleaning up DownloadGerritHooks.
TBR=phajdan.jr@chromium.org,andybons@chromium.org
BUG=579176

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299110 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 57d8654568 git cl for Gerrit: make --squash generate Change-Id directly.
BUG=579183

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299107 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org c55295c327 temporary fix for repos that directly used DownloadHooks from git_cl.py.
TBR=phajdan.jr@chromium.org,andybons@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299106 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 09d7a6a817 git cl upload for Gerit no-squash: correct detect missing Change-Id.
BUG=579183

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299105 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org b371370eb9 cq.cfg: use presubmit builder to tryserver.infra.
Corresponding build CL: https://codereview.chromium.org/1759553007,
land OR revert both Cls in tandem.

TBR=phajdan.jr@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299098 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 18630d61d2 Gerrit: announce deprecation of auto-download of commit-msg hook.
BUG=579176

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299095 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 65874e1466 git cl: add python implementation of Change-Id generation.
This allows to generate new IDs on the fly without installing
commit-msg hook and works just fine on Windows.

BUG=579183

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299094 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 3c3c034d82 Add Gerrit's Change-Id handling to git_footers.
This should insert the message according to Gerrit's own commit-msg
hook implementation.

BUG=579183

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299093 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
ppi@chromium.org 6593d9331d Fix `git cl format` for dart code.
The part that runs dartfmt was relying on the part that runs (or not)
Clang to set the |env| local variable, which no longer happens after
https://codereview.chromium.org/1734863002, making `git cl format` fail
with:

Traceback (most recent call last):
  File "/usr/local/google/home/ppi/projects/depot_tools/git_cl.py", line 3957, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/google/home/ppi/projects/depot_tools/git_cl.py", line 3939, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/usr/local/work/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/usr/local/google/home/ppi/projects/depot_tools/git_cl.py", line 3837, in CMDformat
    stdout = RunCommand(command, cwd=top_dir, env=env)
UnboundLocalError: local variable 'env' referenced before assignment

It seems that we don't need to override env for dartfm anyway - the
clang part is doing this to put clang_format_tool in PATH.

This patch just drops env= from RunCommand for dartfmt.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299072 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org b4f6a22935 git cl status: do not show CQ Dry run as 'commit'.
R=jsbell@chromium.org,phajdan.jr@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299068 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
recipe-roller@chromium.org 51c35a1ba9 Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299063 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
sebmarchand@chromium.org 15cdcfe30e Add a Syzygy fetch config.
Review URL: https://codereview.chromium.org/1749213002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299057 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
recipe-roller@chromium.org 24bf00858c Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299041 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
sheyang@chromium.org 8ea011cf6e my_activity fetches issues from monorail. Also deleted some projects which are not hosted on monorail.
Blocked on deployment of https://chromereviews.googleplex.com/365267013/

BUG=monorail:762

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299032 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 5c2f2a6768 Fix recipe module git to use package_resouce.
TBR=phajdan.jr@chromium.org,martiniss@chromium.org
BUG=590806

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299027 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
hinoka@chromium.org 70a43af908 Read got_revision_mapping from built in spec
Sometimes the spec passed in via parameters also have got_revision_mapping that
we want to use.

BUG=590788

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299015 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org e8f4da09ba Revert of Fix git recipe module to use git.bad as package resouce. (patchset #1 id:1 of https://codereview.chromium.org/1742403002/ )
Reason for revert:
broke win builder bug 590806

Original issue's description:
> Fix git recipe module to use git.bad as package resouce.
> 
> R=phajdan.jr@chromium.org
> BUG=579160
> 
> Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=299005

TBR=phajdan.jr@chromium.org,tandrii@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=579160

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299011 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 575d41a4f1 Fix git recipe module to use git.bad as package resouce.
R=phajdan.jr@chromium.org
BUG=579160

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299005 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
hinoka@chromium.org 79c7897538 Remove --no_resume from download_from_google_storage.py
This doesn't actually look like it's used.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298997 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 35c61458c5 git cl try: advertise git cl try-results.
R=andybons@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298990 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org b015fac677 git cl try-results: show buildbucket tryjobs.
R=nodir@chromium.org,rmistry@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298989 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
recipe-roller@chromium.org ee496a9b4d Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298979 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
sammc@chromium.org 0b35f5d745 Fix git cl format when it finds no clang-formattable files.
Currently, if git cl format does not find any clang-formattable files,
either in the path provided on the command line or in the CL as a whole,
then it applies clang-format to all changes in the CL. This CL fixes
this by changing git cl format to not clang-format when it does not find
any changed files that are clang-formattable.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298971 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
recipe-roller@chromium.org ab373715fd Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298931 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
recipe-roller@chromium.org 5311a4590c Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298929 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
thakis@chromium.org 73aa9fb914 package_from_installed: Put env in json file behind "env" key.
Every time I write a json file, I end up wishing I put my toplevel items
into non-toplevel items down the line when I want to add more stuff to the
json file.  Address this now, while no toolchain with this json file has
been built yet.

Follow-up to https://codereview.chromium.org/1706423002/

BUG=495204

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298908 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
mgiuca@chromium.org cd0a1cf362 git hyper-blame: Added automatically ignoring revs from a file.
Added --ignore-file argument, so you can specify ignored commits in a
file rather than as raw command-line arguments. Also, automatically
searches for a file called .git-blame-ignore-revs, which is
automatically used as an ignore list by default.

Also, specifying an unknown revision (either on the command line or in a
file) now generates a warning, not an error.

Notes on some decisions:
- The file is called .git-blame-ignore-revs (not mentioning hyper-blame)
  because we may use the same list in tools other than hyper-blame in
  the future.
- We look at the *currently checked out* version of
  .git-blame-ignore-revs (not the version at the specified revision) for
  consistency with .git-ignore. Because we only expect revisions to be
  added (not deleted), it should be fine to use an ignore list from a
  newer version than the revision being blamed.
- We considered using git notes for the ignore list so that you could
  add a revision to the ignore list without needing a follow-up CL.
  However, there are some problems with this approach. git notes is not
  automatically synced with git clone/pull. Also the Chromium infra
  tools (Reitveld, CQ) are not set up to allow modification of git
  notes, nor are changes to git notes subject to OWNERS checks. Using a
  regular file ensures all users synced to a particular revision are
  using the same ignore list.

BUG=574290

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298897 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
thakis@chromium.org 157a4b6aa7 Let package_from_installed write the build env into json files in addition to SetEnv.cmd
BUG=495204

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298862 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
thakis@chromium.org e187be985a Make GenerateSetEnvCmd() more table driven.
No intended behavior change.  This makes it possible to dump this state into
SetEnv.x32.json and SetEnv.x64.json in an easy follow-up.

BUG=495204

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298856 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
bauerb@chromium.org 13502e0fd3 Use %B format instead of %s\n\n%b to get the raw commit message from a hash.
\n doesn't work on Windows, and %B is shorter anyway.

BUG=586344

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298845 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
ukai@chromium.org cd9a3389e1 depot_tools: add master_deps in gclient/config.py
BUG=574615

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298843 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
dsansome@chromium.org 0878b053b1 Sort the list of tools shown by cit.py's help message
(it looks nicer)

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298842 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
rohitrao@chromium.org d4ef599ba1 Fix regexp in roll_dep.py.
The fallback code was parsing DEPS entries improperly.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298839 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
maruel@chromium.org 3215234993 Convert old-style exception handling to current format in fix_encoding.py.
With this change, fix_encoding can be imported in python3.
fix_encoding.fix_encoding() returns False because, at least on my Ubuntu 14.04
system running python 3.4.3;

  sys.getdefaultencoding() == 'utf-8'

The Windows specific code hasn't been tested on python3 and is expected to
require fixes.

R=vapier@chromium.org
BUG=61357

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298834 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
hinoka@google.com 6eb23e25bd Revert of Bot update cleanup (patchset #5 id:80001 of https://codereview.chromium.org/1686273002/ )
Reason for revert:
Separating change into smaller changes.

Original issue's description:
> Bot update cleanup
> 
> * Remove activation check
> * Remove messages
> * Remove deps2git
> * Remove build_internal pointer by:
> ** Moving chrome svn url into bot_update.py (This isn't secret anyways.)
> ** Move patch.exe into depot_tools (No reason this should've been internal...)
> ** Default everything to active, so no need for checks anyways.
> 
> BUG=
> 
> Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298809

TBR=martiniss@chromium.org,eseidel@chromium.org,estaab@chromium.org,iannucci@chromium.org,hinoka@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298826 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
hinoka@chromium.org b0f36188b2 Bot update cleanup
* Remove activation check
* Remove messages
* Remove deps2git
* Remove build_internal pointer by:
** Moving chrome svn url into bot_update.py (This isn't secret anyways.)
** Move patch.exe into depot_tools (No reason this should've been internal...)
** Default everything to active, so no need for checks anyways.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298809 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org a1afbb986d Roll cq_client.
From infra_internal, revisions 6f979a..cd0150f.

TBR=sergiyb@chromium.org,machenbach@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298789 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
recipe-roller@chromium.org a18cfe6573 Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298787 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
recipe-roller@chromium.org 63b22c1880 Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298781 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
iannucci@chromium.org 846218da18 Make git.checkout return the commit hash.
R=dnj@chromium.org, hinoka@chromium.org, luqui@chromium.org, martiniss@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298774 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
recipe-roller@chromium.org 85ef669c11 Roll recipe dependencies (trivial).
R=
BUG=
TBR=martiniss@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298750 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org 1e67bb7be9 Gerrit git cl: run same post-upload hooks.
R=rmistry@chromium.org,andybons@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298733 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
tandrii@chromium.org dc58a97f02 Finally get rid of depot_tools' breakpad.
Reland of http://crrev.com/1689633002#ps20001 without breaking other
repos by means of keeping breakpad.py importable, but otherwise a no-op.

R=maruel@chromium.org
BUG=585837

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298731 0039d316-1c4b-4281-b951-d872f2087c98
9 years ago
dsansome@chromium.org 1dda36db84 Raise exceptions properly on HTTP errors from OAuthRpcServer (which is only used on bots)
This will hopefully make Rietveld._send retry 500s like it promises to

BUG=585632

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

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