Commit Graph

305 Commits (926ae6a75ffe5a613477970f2782ccabd4bcb4e0)
 

Author SHA1 Message Date
bradnelson@google.com 833b227017 Adding a project selection option to gcl.
Defaulting to a value in codereview.settings

BUG=None
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@25886 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
pam@chromium.org ed9a083365 Report computation time before showing a prompt, so the response time
isn't included in the calculation.

BUG=none
TEST=submit change with presubmit warning, note reported time

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@25806 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
sgk@google.com b671b22335 Add setlocal so {cpplin,gcl}.bat don't repeatedly add \depot_tools to %PATH%.
Review URL: http://codereview.chromium.org/201062

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@25751 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
kbr@google.com ab318594b3 Added "gclient pack" subcommand, which generates a patch relative to
the root of the source tree. It is similar to "gclient diff", and
shares much of the implementation, but it seems that developers may
want the semantics of each in different situations, which is why it is
being added as a new command.

Generalized SubprocessCallAndCapture into SubprocessCallAndFilter.
Added RunSVNAndFilterOutput; changed RunSVNAndGetFileList to use it.
Fixed problem in presubmit_canned_checks.py where it was not working
on Windows. Updated unit tests for gclient.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@25410 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
thestig@chromium.org 6bd3170a1a Change directory to repository root before running CheckSvnModifiedDirectories.
Review URL: http://codereview.chromium.org/191002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@25270 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
thakis@chromium.org 0270161899 Unbreak `gcl try` if EMAIL_ADDRESS is not set.
Review URL: http://codereview.chromium.org/172099

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@25151 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
thakis@chromium.org 59ad6c72ee Make git try work over svn.
Codereview URL: http://codereview.appspot.com/110134


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@25111 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
chase@chromium.org 6f943c2ca4 Add licensing header to git-try.
TBR=maruel
Review URL: http://codereview.chromium.org/177047

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24994 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
chase@chromium.org 5ef7f34448 Add script to create a local Chromium git repository.
BUG=none
TEST=creates a working Chromium git repository in src
Review URL: http://codereview.chromium.org/173599

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24991 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
mattm@chromium.org 4e63365629 git-try: When -r isn't specified, let the try server decide the revision.
Review URL: http://codereview.chromium.org/173446

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24848 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 5df6a46313 Enforce --force when running gclient runhooks
Review URL: http://codereview.chromium.org/173174


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24761 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 8663fe85d8 Add *.cfg to git-gs, buildbot configuration files.
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24757 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
chase@chromium.org b0e621f360 git-try: Use trychange library for HTTP submits.
Make git-try use trychange for both SVN and HTTP try
server submits.  Simplifies git-try and reduces chance
of differences in behavior between SVN and HTTP try
job submits.

Exit early if the checkout's configured email address
does not pass validation.

Simplify trychange import.

BUG=none
TEST=git-try submits a job to the try server
Review URL: http://codereview.chromium.org/173394

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24315 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org d59982a1c6 Treat .txt files as 'source' files (to enforce LF and line length)
Review URL: http://codereview.chromium.org/174210


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24100 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
chase@chromium.org dc54601fe0 Update git-try to find trychange after move.
TBR=maruel
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/173249

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24064 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
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
16 years ago
chase@chromium.org 0e433add67 Add 'time' to list of actual members.
This fixes the presubmit unit test.

BUG=none
TEST=presubmit tests pass
Review URL: http://codereview.chromium.org/173245

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24059 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
mark@chromium.org 35663168f6 Fix trychange.py --host and --port to work as expected
Review URL: http://codereview.chromium.org/174244

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23999 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
jam@chromium.org 2a891dc893 Print out how long presubmit checks took if it's more than 1 second.
Review URL: http://codereview.chromium.org/174163

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23870 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 57e893ef48 Improves the 'gclient revinfo' display info.
Patch contributed by thiago.farina@gmail.com

Review url: http://codereview.chromium.org/172028

BUG=None
TEST=None


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23718 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
bradnelson@google.com 905175b7d2 Updating hammer script based on review suggestions.
BUG=None
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23440 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
bradnelson@google.com 34526def0d Fixing == -> = for dash.
BUG=None
TEST=None
TBR=rspangler

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23335 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 7a9a447090 All .py, .sh and .make
Review URL: http://codereview.chromium.org/164489


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23328 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
thestig@chromium.org da8cddddfe Add a presubmit check for accidental checkins of files under a SVN modified directory.
Review URL: http://codereview.chromium.org/155489

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23271 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 913a842462 Add git-gs
Review URL: http://codereview.chromium.org/164417


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23210 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
phajdan.jr@chromium.org d83b2b28a0 Make gclient pass correct relative paths to the hooks.
Review URL: http://codereview.chromium.org/165070

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23026 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
bradnelson@google.com 5b55310443 Fixing up hammer script to work in the nacl and o3d trees.
BUG=None
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22990 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
pam@chromium.org f0dfba3f44 Add all modified files to new changelists by default.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/164084

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22800 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
phajdan.jr@chromium.org 68f2e09652 Splice matching_files_list in $matching_files' place in gclient.py.
Based on Mark Mentovai's mail.
Review URL: http://codereview.chromium.org/164068

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22616 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
laforge@chromium.org 8b60d0d4b1 Revert 22561 - Minor change to gcl to automatically put changed files in the changelist (like we do with P4)
R=nsylvain
Review URL: http://codereview.chromium.org/164028

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22608 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 6607d4d923 Adding cpplint.bat to depot_tools.
so you can type only cpplint in console like the other scripts(gclient, gcl, etc)

BUG=None
TEST=None

Patch contributed by thiago.farina@gmail.com


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22576 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
laforge@chromium.org d90ad9b76d Drover == tool to rapidly merge/revert off of trunk and branch
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22565 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
laforge@chromium.org 1ef869cbb9 Minor change to gcl to automatically put changed files in the changelist (like we do with P4)
R=nsylvain
Review URL: http://codereview.chromium.org/164028

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22561 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
estade@chromium.org bfd09ce886 Get rid of annoying empty changelists!
1) don't save empty changelists to begin with. This guards against an accidental or canceled "gcl change" creating an empty file.
2) create a "clearempties" command which clears all changelists that don't have any files in them.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22538 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
ukai@chromium.org a301f1f3e4 Use input_api.os_path.pathsep instead of ';' to join a list of paths.
BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22473 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 2534063d34 Make initial git-cl and git-try fetch quieter.
Add .gitignore for causual ignores.

TEST=none
BUG=none

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


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22380 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org d659ceaa95 Prints help when the user only type revert in command line.
BUG=None
TEST=None

Patch contributed by Thiago Fransosi Farina <thiago.farina@gmail.com>

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22294 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org c5e9aec590 Fix output on Windows when gclient warns the user about a stale directory.
TEST=unit test
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22290 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
phajdan.jr@chromium.org 71b4068161 Pass matching file list to the hook in gclient.
Review URL: http://codereview.chromium.org/160294

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22224 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
evan@chromium.org 67820efbf0 Add a --nohooks to gclient to update/sync/revert without calling the hooks
BUG=16856

Patch from Fabien Tassin <fta@sofaraway.org>.


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@21655 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
phajdan.jr@chromium.org 644aa0cfaa Add export command to gclient.py
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@20990 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org b3b00a41c8 Add --target support to trychange.py.
TEST=none
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19878 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org a05be0ba8d Fix 'gcl help' when not run inside a svn checkout.
TEST=none
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19628 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org b8b6b871f5 Add help for --head.
TEST=none
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19622 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
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
16 years ago
maruel@chromium.org e49187c280 Fix CheckSvnProperty canned check.
It was totally broken until I actually tried it. Fix the test accordingly.

TEST=unit test
BUG=none
Review URL: http://codereview.chromium.org/149096

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19433 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org ce8e46b3b2 Ask for feedback one time out of 5, only when there is presubmit check notification.
TEST=unit test
BUG=none
Review URL: http://codereview.chromium.org/147162

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19429 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
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
16 years ago
maruel@chromium.org c0b2297c8a Change RunPythonUnitTests() to run the unit tests in a separate process.
The unit tests could modify global state in hard-to-revert ways and would make the PRESUBMIT.py check flaky.
Having the test running out of process alleviate any potential issue at the cost of speed (more noticeable on Windows).

TEST=unit tests
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19248 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
erg@google.com 6317a9c177 Copy a newer release of cpplint.py from google-styleguide.
Review URL: http://codereview.chromium.org/147119

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