Commit Graph

4444 Commits (b1ad2f04c9a15c7745a6fd8ddfdd2c001dfb2fe6)
 

Author SHA1 Message Date
dpranke@google.com 1a77f1dc15 Modify the output of gclient update, gclient status to only print out
messages when --verbose is specified or when something actually happens.

Also, remove --manually_grab_svn_rev, because we need this to happen all 
the time to get gclient update to shut up if we're comparing against HEAD.
It doesn't look like there are any real side effects of removing this.

An alternative change would be to wrap this behind a --quiet flag.

Note that the change to tests/trychange_unittest.py is an unrelated fix to get
all the tests to pass.

  R=maruel@chromium.org
  TEST=none
  BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@28039 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
bradnelson@google.com e2d29c8824 Adding an option to specify a default patchlevel in codereview.settings.
BUG=None
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27971 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
chase@chromium.org ad02011773 Fix trychange unittest.
BUG=none
TEST=trychange unittest passes
Review URL: http://codereview.chromium.org/243090

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27969 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@chromium.org ab27b8ed66 gclient: fix unittests
Review URL: http://codereview.chromium.org/254012

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27492 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@chromium.org 8301701a81 gclient: fix to support reading .gclient_entries in old list format
Review URL: http://codereview.chromium.org/249021

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27386 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@chromium.org 2e38de7be5 gclient: don't make SVN-specific calls in RunOnDeps
Replaced a call to CaptureSVNStatus with a SCMWrapper::status

gclient: store gclient_entries as a dict

Currently we only store the relative path for entries.
We need to also store the url so that learn the repo type: git or snv.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27370 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@chromium.org e28e498655 gclient_scm: add support for .git
gclient_tests: add GitWrapper test cases

gclient_scm: make RunGit private and add url check

gclient_scm: add revert, run_hooks, and status

gclient_scm: add git implementations of cleanup, diff, and export

gclient_scm: implment GitSCM::update

gclient_scm: add a checks for unsupported scm and unimplemented method

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27241 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 81344141c1 Fix the prompt so the user can interact with svn.
When using svn for try job for the first time, svn will ask for the credentials.

TEST=none
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27103 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@chromium.org 95f8454d6a gclient_scm: fix one more case where revision stores an int
Review URL: http://codereview.chromium.org/218016

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27077 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 2e0c685cfd Fix gclient breakage cause by r26940.
Current checkout revision was ignored so it was always acting like if --force was used.
This was overloading the subversion server, creating timeouts, causing a cascading effect that destroyed the tree.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27027 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 817ba610a1 Fix drover.py style.
TEST=none
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26980 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 7f7915cb12 Make drover executable
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26977 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 5ba3a44fee Fix svn diff mungling.
It was adding a space in front of every line.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26973 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@chromium.org 770ff9ee21 gclient: store revision as a string and not int
Currently, revision numbers are stored as int. This won't work
for git's SHA1s. So storing revisions as strings.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26940 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org e2ce0c75c3 Print nice error in url error.
TEST=none
BUG=http://code.google.com/p/gclient/issues/detail?id=12

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26931 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
thakis@chromium.org 8871f45fd2 Fix git-try for people that use it over svn.
Original review url: http://codereview.chromium.org/225007 


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26928 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
yaar@chromium.org f132804ce5 GClient should allow having 'url': None in .gclient
This is for situations where the solution is checked out by another SCM
mechanism (e.g. update-webkit or just svn co) but we want to use gclient to
fetch the dependencies.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26876 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@chromium.org cb5442bf76 gclient_scm: add test for unsupported scm
gclient_scm: use a map for deciding whether or not the scm is supported

gclient_scm: add a checks for unsupported scm and unimplemented method

git_scm: pull out svn code into SVNWrapper

gclient_scm: create a create_scm factory method

Use a factory method to abstract SCMWrapper creation. This method
will eventually return the correct subclass of SCMWrapper. Initially,
there will only be SVNWrapper.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26823 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
yaar@chromium.org 742eb52c2e I made git-try also find diffs in one extra gip sub-repository
and append them to the patch sent to the try bots. This is 
very useful for chromium+webkit tries.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26817 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 5a180bb854 Implement fixes requested in review http://codereview.chromium.org/215039
TBR=nsylvain
BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26806 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org c13c5ff5a4 Fix gclient unittests.
BUG=none
TEST=unittests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26804 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org aa3dd476c4 Use svn update --revision BASE instead of svn revert.
svn revert is broken in too many ways to work around it. I just discovered --revision BASE and it does everything I need.

BUG=none
TEST=gclient revert ignores externals, work with switched directories, work with files with inconsistent line endings (sigh)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26707 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 754960e99b Fix gclient revert for external, switched and conflicted directories.
TEST=gclient revert more stuff but stops reverting external directories
BUG=none

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


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26672 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 5e73b0cfa1 Revert "Use a factory method to abstract SCMWrapper creation." totally broke gclient.
TBR=msb
TEST=none
BUG=none

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


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26606 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@chromium.org 56237087e9 Use a factory method to abstract SCMWrapper creation.
This method will eventually return the correct subclass of SCMWrapper. Initially, there will only be SVNWrapper.

gclient_scm: add test for unsupported scm

gclient_scm: make SCMWrapper constructor parameters non-optional

gclient_scm: add a checks for unsupported scm and unimplemented method

git_scm: pull out svn code into SVNWrapper

gclient_scm: create a create_scm factory method

TEST=
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26602 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
msb@google.com b75db5152a gclient_scm: add test to catch bug fixed by r208010
Review URL: http://codereview.chromium.org/214017

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26577 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org de754ac6ad Fix a coding error that was introduced in 26423.
"file_list = file_list or []" would create a new empty list when an empty list is passed as a parameter, ditching the output parameter.

TEST=hooks are now run on gclient sync
BUG=none

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


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26461 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org c2c78f7f02 Add a new test case for SCMWrapper.revert.
Add a test case for the UnversionedUnexpected file code path.

TEST=This test case will catch the bug fixed by r26425.
BUG=none

Patch contributed by msb@

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


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26458 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 167b9e63c7 Fix PyChecker errors caused by r26423.
Patch contributed by msb@

TEST=unit test
BUG=none

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


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26457 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
johnnyg@chromium.org 832179b72b Fix git-try so that it modifies the ---/+++ headers for new files correctly.
Review URL: http://codereview.chromium.org/213004 


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26452 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
robertshield@google.com 0d3c7a868b Add missing import from r26426.
BUG=gcl try and gcl upload don't work
TBR=maruel

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26429 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
bradnelson@google.com df7aea45bd Fixing issue in which for large patches, files fail to revert.
Flaw in loop logic, causes it to miss the occasional file.

BUG=None
TEST=None
TBR=maruel

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26427 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org d090099eb7 Fix for r26423 part 2.
TBR=brad
BUG=gcl try is broken
TEST=none

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


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26426 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
bradnelson@google.com 8f9c69f5b0 Fixing errors in gclient on a gclient revert --nohooks on windows.
BUG=None
TEST=None
TBR=maruel

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26425 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 5f3eee3bab gclient: remove wildcard import from git_scm
Part of a larger refactoring to abstract SCM-specific bits.

presubmit_support, revert, gcl: modify to import gclient_scm and gclient_utils

Part of a larger refactoring to abstract SCM-specific bits.

revert, gcl: modify to import gclient_scm and gclient_utils

Part of a larger refactoring to abstract SCM-specific bits.

gclient: pull out SCM bits

Pulled out SCMWrapper into gcliet_scm.py as part of a larger refactoring to
abstract SCM-specific bits. Plan is to evenutally add git support.

Pulling out SCMWrapper also required pulling out utility functions into
a gclient_utility.py.

Patch contributed by msb@

TEST=none
BUG=none


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26423 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
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
16 years ago
dpranke@google.com a135e356ef Modify gcl.py so that lint ignores only webkit/api, and not webkit/*
R=pam
   TEST=none
   BUG=none

M    gcl.py



git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26194 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
bradnelson@google.com 57e7855b1d Making gcl upload do tryupload from the same place as gcl try.
BUG=None
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26044 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
gspencer@google.com df2d59059d This adds a feature to gclient to allow the (optional) specification of the
name of the top level "DEPS" file of a solution from within the .gclient spec.

This allows users to edit their gclient once and use a different (perhaps
experimental) DEPS file instead of the traditionally named "DEPS".

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26031 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
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