Commit Graph

2058 Commits (ca35be31122f7ff712b2d955ec148f44e9b06156)
 

Author SHA1 Message Date
enne@chromium.org e72c5f519a Add cpplint to presubmit input_api
This will let clients that don't use the heavily filtered canned cpplint
check and want to behave more strictly (aka cc/) reuse any common
settings applied to the cpplint module.

R=maruel@chromium.org
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@194264 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
maruel@chromium.org 29ff7cd419 Reapply r193525 "Make gcl use git_cl.py code for consistency in the CL description formatting."
It was manually tested to work.

R=dpranke@chromium.org,iannucci@chromium.org
Review URL: https://codereview.chromium.org/13832005

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@194182 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
maruel@chromium.org 24129ebce7 Fix presubmit check compatibility with GAE SDK 1.7.6 (bis).
Improve temporary storage management.

Print the error message on local GAE instance failure.

Useful to debug when a new version of the GAE SDK breaks something.

TBR=iannucci@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@194131 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
maruel@chromium.org 5f17da327e Fix presubmit check with newer version of AppEngine SDK v1.7.6.
The kill() call may fail because the process already exited.

TBR=iannucci@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@194126 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
danakj@chromium.org aed892eb62 Teach cpplint include-what-you-use about chromium hash_set and hash_map.
For hash_map and hash_set, we should include "base/hashtables.h", not
the <hash_set> or <hash_map> standard headers.

R=maruel@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@194047 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org fd79e0d248 improve the error message fetch returns if a checkout exists
to tell the user how to recover from partial checkouts and
what to do with an existing checkout.

R=iannucci@chromium.org
BUG=230691

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@194019 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
zimmerle@gmail.com 3cdcf56c58 Ensures that local git config is used while checking if it is a Git-svn repo.
If no `--local` option is passed to git config command line tool, it will relies
on the local repository and then to the user configuration ($HOME/.gitconfig).
In case the user has - for some reason - a svn repository configured in this
user configuration, the checking: `git config --get-regexp ^svn-remote\.` will
accuse that there is svn repo and so the `git cl tool`. This patch just add
the option `--local` to the git config command line tool, avoiding this
situation.

R=maruel@chromium.org,dpranke@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193987 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
rogerta@chromium.org 4a6cd04c87 Remove trailing '\n' from last-upload-hash branch property.
BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193943 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
torne@chromium.org 547c64b1fd Allow multiple OSes to be checked out with git submodules.
Allow target.os to be a multivalue config option, which will cause
submodules required by any of the listed OSes to be checked out. You can
add additional OSes to the list with "git config --add target.os".

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193901 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org 6cc97a1bac Ensure that we pick up 'git.bat' and 'svn.bat' on Windows.
R=maruel@chromium.org
BUG=227526


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193865 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
iannucci@chromium.org 3d36e79531 Ignore ctags index file.
R=szager@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193826 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
jochen@chromium.org d993e78d3b Add the --nosvn property to the chromium solution.
This allows non-committers to use fetch to checkout chromium or blink using

$ fetch chromium --nosvn=true

BUG=230357
R=dpranke@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193713 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
jam@chromium.org 7d5cc1b424 Revert 193525
I get the following when doing "gcl upload"

Traceback (most recent call last):
  File "f:\src\depot_tools\gcl.py", line 1459, in <module>
    sys.exit(main(sys.argv[1:]))
  File "f:\src\depot_tools\gcl.py", line 1437, in main
    return command(argv[1:])
  File "f:\src\depot_tools\gcl.py", line 1070, in CMDchange
    description = change_info.GetIssueDescription()
AttributeError: 'ChangeInfo' object has no attribute 'GetIssueDescription'
Sending crash report ...
  args: ['f:\\src\\depot_tools\\gcl.py', 'change', 'w4f4']
  cwd: f:\src\chrome3\src
  exception: 'ChangeInfo' object has no attribute 'GetIssueDesc
  host: JABDELMALEK3-W.ad.corp.google.com
  stack:   File "f:\src\depot_tools\gcl.py", line 1459, in
  user: jabdelmalek
  version: 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1
A stack trace has been sent to the maintainers.



 "Make gcl use git_cl.py code for consistency in th..."

> Make gcl use git_cl.py code for consistency in the CL description formatting.
> 
> This way, git_cl.py's ChangeDescription becomes the canonical CL description
> handler.
> 
> R=dpranke@chromium.org
> BUG=
> 
> Review URL: https://chromiumcodereview.appspot.com/13800018

TBR=maruel@chromium.org
Review URL: https://codereview.chromium.org/14016004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193555 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
maruel@chromium.org 8a0afa0423 Make gcl use git_cl.py code for consistency in the CL description formatting.
This way, git_cl.py's ChangeDescription becomes the canonical CL description
handler.

R=dpranke@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193525 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
maruel@chromium.org 78936cbc80 Switch ChangeDescription usage to be stricter.
Include all the preparatory work to eventually update the R= line to match the
actual reviewers.

The goal here is that ChangeDescription becomes the official implementation for
handling and modifying commit messages accross git-cl, gcl and the commit queue.

This change does slightly tweak the spacing between the hot lines.
It is done on purpose to make them consistent.

R=dpranke@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193514 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
maruel@chromium.org eb52a5caec Make git-cl accepts multiple --reviewers and --cc arguments.
It makes sure the resulting options.reviewers and options.cc are internally
consistent by splitting comma separated items.

R=iannucci@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193496 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
koz@chromium.org c71927873f Make warning for mismatched local and remote patchset more clear.
Review URL: https://chromiumcodereview.appspot.com/13956002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193257 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
pdr@chromium.org 98ca6624fc Change "git cl patch" to say "Committed patch locally."
Currently, if "git cl patch" succeeds it prints:
Committed patch.
This patch changes "git cl patch" to print:
Committed patch locally.

BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193206 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
maruel@chromium.org b021b32ac6 Do not systematically update the description on CL close.
This is not always necessary, like for "git cl set_close".

R=dpranke@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192829 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
ilevy@chromium.org c100b0f236 Misc improvements to drover
- Improve SVN heuristic by using cutoff of 180 days instead of 
  120. I've verified this won't cause problems with the repos
  we use.  (the closest is blink ToT and chrome, blink ToT
  refers to a revision in chrome from 9 months ago)
- Alert if using local drover.properties file. Webkit devs had
  a drover.properties file that hardcodes svn.webkit.org, which
  makes drover point to the wrong revision.

BUG=227168


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192641 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
iannucci@chromium.org 08b21bfe31 Unpoison gclient checkouts by setting recurseSubmodules=false
This was causing extremely slow gclient sync's, and was preventing gclient from
outputting anything if a slow submodule needed significant updating.

R=cmp@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192475 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
adamk@chromium.org 36f47304a6 Add -s as a short option for --send-mail
R=dpranke@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192439 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
ilevy@chromium.org 87e634fa2e Add blink drover revert support.
Building on crrev.com/12670008, add support for blink svn. The svn
revision for blink is sufficiently different from chromium that we
can revert blink changes without further logic changes. The order of
alternative repos corresponds roughly to the expected rate of use.

TEST=Tried reverting some blink revs.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192396 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
jamesr@chromium.org af27f462d4 Make maxlen configurable in PanProjectChecks
Blink wants to override the maxlen which is currently configurable in CheckLongLines but not in PanProjectChecks. This exposes the parameter on PanProjectChecks.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192394 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org 8623da3be3 add in deltaBaseCacheLimit workaround
R=maruel@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192358 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
iannucci@chromium.org 6ede85ff7b Revert "Make gclient fetch git repos recursively. This is needed when adding a git repo through DEPS. If that repo has submodules, we need to fetch them or else the repo won't be complete."
This reverts commit 6a2e4710bf.

cmp says:
This CL causes NewGit and Git submodules workflows to comingle in ways that result in bad and unexpected failures for new and existing users.  One failure is for the new Blink developers who need to use git-svn with their WebKit third_party checkout.  Another failure is in the Windows NewGit workflow where gclient sync takes longer than necessary to complete.

The right approach at this point given the costs of this change is to revert it and rethink the best way to get projects the functionality they need while restoring the functionality existing projects have required for over a year now.

Please discuss the recursive/recurseSubmodules code face-to-face with cmp@google.com before attempting to make this live again.  Thanks.

R=cmp@chromium.org
BUG=224074


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192236 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org b5e9821642 Revert "disable 'svn init' for blink temporarily"
TBR=iannucci@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192234 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org 3ba37d3727 add auto-update step to 'fetch' wrappers
R=iannucci@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192233 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org cf9846cf66 disable 'svn init' for blink temporarily
Currently the NewGit workflow sets up git submodules to point to a
.git dir through a textfile indirection. git-svn isn't smart enough to
deal with this, and so we need to change things to use symlinks instead.

In the meantime, 'fetch blink' will fail. For now, we'll turn off
the svn configuration.

TBR=iannucci@chromium.org

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192230 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
iannucci@chromium.org 50395ea4d0 Add print statement to blink overwrite hack.
TBR=cmp@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192226 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
agable@chromium.org 2560ea76c5 Make fetch run svn ls for svn repos behind git-svn configs.
R=dpranke@chromium.org,iannucci@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192205 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
iannucci@chromium.org 3e8df4bfc9 Add webkit_trunk override in gclient to force bots to use blink for now.
R=cmp@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192200 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org 6b8c91a145 Make depot_tools' fetch work on windows if 'gclient' isn't in the path
TBR=maruel@chromium.org, agable@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192170 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org 7ca51b30a4 print chdirs for dryrun in fetch
TBR=iannucci@chromium.org, maruel@chromium.org, agable@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192164 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org a992edbc1a fix dryrun, path check in 'fetch'
TBR=iannucci@chromium.org, agable@chromium.org, maruel@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192160 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org 2bf328a8f9 handle unknown recipes in 'fetch'.
TBR=iannucci@chromium.org, agable@chromium.org, maruel@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192157 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
agable@chromium.org 0a58ef84b5 The fetch recipe for Blink.
TBR=dpranke@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192156 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org d88d7f5ce3 add a -n/--dry-run to the new fetch command in depot_tools
This is done as a hack since we don't really have real option parsing :(.

R=iannucci@chromium.org, agable@chromium.org, maruel@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192154 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dpranke@chromium.org e3d147d951 add help (-h/--help/help) to fetch.
TBR=iannucci@chromium.org, maruel@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192135 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
agable@chromium.org cc023508e4 First commit of depot_tools/fetch.py
This is the bare minimum to have fetch.py working for chromium.
The DEPS file pulls the new tools/recipes repo in, which will contain
the recipe for chromium and all other checkout recipes eventually (followup
CL coming shortly). fetch and fetch.bat simply invoke fetch.py. fetch.py
takes a recipe and some arguments on the command line, invokes the recipe
to get its instructions, and performs the actual checkout.

Currently only supports Gclient-Git-Svn checkout (the kind needed for
Chromium), but other checkout types will be pulled from annotated_checkout.py
soon.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192130 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dmikurube@chromium.org 07d149fbb0 Fix a case branch...rietveldissue is None.
BUG=None
NOTRY=true


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192050 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
koz@chromium.org 5974d7a5f2 Warn when git cl upload might be overwriting a newer patchset.
Review URL: https://chromiumcodereview.appspot.com/12646011

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@191895 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
wez@chromium.org a6d011e8dc Add PresubmitPromptOrNotify helper.
PresubmitPromptOrNotify prints the message and prompts the user only
if the presubmit is on upload, not commit.

This is useful to provide upload-time sanity checks without blocking
the CL from being landed via the commit-queue.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@190711 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
rogerta@chromium.org 43e34f0ba8 Make sure to use title if specified as default message when uploading an issue
to rietveld for the first time.  This came up in a discussion with Nico about
changing -m for -t in the git cl upload command.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@190399 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org fdcecadb9c Refactor with fixes for msys-git.
- Check for -h|--help before anything is modified.
- Discard stderr from 'git submodule update'.
- Be careful not to overwrite script while it's executing
  on win.
- Run hooks by invoking 'git runhooks'.
- Fix --dry-run option.

R=iannucci@chromium.org
CC=jar@chromium.org,scottmg@chromium.org

BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@189926 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
dzhioev@chromium.org 4175820000 Added *.grdp to git-gs.
grdp is the file that included to grd files.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@189571 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org aa574c6a22 Execute a temp copy of update_depot_tools.bat
Windows will sometimes freak out if a file is rewritten while
it's being executed.  That can happen when update_depot_tools.bat
runs.

R=iannucci@chromium.org,maruel@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@189429 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
csharp@chromium.org 9af0a1109f Enforce 15 minutes timeout for all operations and 30 minutes for checkouts.
svn commit likes to hang indefinitely whenever the svnserve server forgets
about the client. This changes ensures the commit queue won't be blocked by
this problem.


R=maruel@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@189382 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
mmoss@chromium.org 628522eb8d Don't replace default fetch config with branch-heads.
This causes the 'git config' to only add or update the branch-heads fetch
entry, and not replace any other existing entry (e.g. refs/heads/*).

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@189326 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org df31e61e1a Invoke python correctly from windows.
BUG=158663


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

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