Commit Graph

1540 Commits (53937ba767a36b6bc271d5ab2afba5a5817af4b2)
 

Author SHA1 Message Date
iannucci@chromium.org 53937ba767 Add option to specify similarity level for git diff operations on commandline
BUG=125983

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159732 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 3836bb2c3f Update upload.py at 6edc5bf0ceb2.
TBR=iannucci@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159715 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org a73435aa98 Fix private issues, take two.
The object creation order was wrong

TBR=rogerta@chromium.org
BUG=149941


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159524 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 0aca0f9684 Enforce the checkout object to use an absolute path.
Stop using stderr so the output is more readable on buildbot.
Otherwise stderr arrives before stdout in apply_issue step.

TBR=rogerta@chromium.org
BUG=153284


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159508 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 4dd9f7205a Make apply_issue.py much more verbose about what it's doing.
It's to help users figuring out what is happening.

TBR=rogerta@chromium.org
BUG=153284


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159504 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 9d5f4ad1b9 Works around rate limiting by trying to apply CL unauthenticated first.
TBR=rogerta@chromium.org
BUG=153284


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159488 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org ec4a918139 Add --no-backup-if-mismatch so no .orig file is created when fuzzing occurs.
Nobody cares about those .orig files and they get in the way on the try server
for some specific license check.

R=cmp@chromium.org
BUG=152507


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159329 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
lliabraa@chromium.org ade83db154 Add 'git clean -f -d' to 'gclient revert' when in a git repo.
The try slaves run 'git revert' to clean up from the previous run. This only runs 'git reset --hard', which does not remove any untracked files, so if a CL adds a new file it will still be present after 'gclient revert'. Adding git clean -f -d removes untracked files (-f) and directories (-d).

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159020 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
szager@chromium.org 5a30792458 git command to find a git revision corresponding to lkgr.
Review URL: https://chromiumcodereview.appspot.com/10958056

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158892 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
ilevy@chromium.org f3b2123a71 Disable jobs sent directly to triggered bots
- and display a warning message

BUG=146713


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158377 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org e1a0376aa1 Fix applying svn:executable on Windows.
For an unknown reason, 'svn propset svn:executable * foo.sh' doesn't work on
Windows. It is even more awkward that 'svn propset svn:executable . foo.sh'
works just fine, in particular, subversion replaces the value, as long as it's
not an empty string, back to '*'.

R=petermayo@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158281 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
rogerta@chromium.org 9824629157 Allow the password to be specified through stdin.
BUG=149941

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158068 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
sbc@chromium.org 7fc75cac2f make pylint behave the same with or without -v
BUG=http://code.google.com/p/chromium/issues/detail?id=151110


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158064 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
rogerta@chromium.org 3e38ff492d Mark the apply_issue and apply_issue.bat files as executable. BUG=149941
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158049 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
rogerta@chromium.org 11ac30f979 Add wrapper scripts around apply_issue.py so that it can be called directly
if depot tools is in the path.

BUG=149941

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158039 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org dffc73cb44 Fix applying git diff with new file mode 644 on a svn checkout.
svn propdel svn:executable shouldn't be called on it.

R=petermayo@chromium.org
BUG=150960


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158038 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 072d94b68f Do not enforce HEAD when a revision is not specified.
This brings back git cl try to try at LKGR instead of HEAD, which is coherent
with git-try and gcl try.

R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@157810 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
scottmg@google.com a5b79b6901 update windows ninja binaries to 75f1b00cc
Note that this unforks, windows ninja is now built from martine/ninja.

TBR=iannucci@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@157451 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
rogerta@chromium.org 33578fe270 Allow the caller to specify a username and password so that private issues
can be applied.  This is the first part for this bug; the second part is in commands.py where this is called by the TS.

BUG=149941

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@157355 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 6afd0c36e8 Do not assume gclient is in the PATH.
Also specify the batch file on Windows. Python's subprocess is picky about that.

TBR=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@157337 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 1833e57b47 When a DEPS file is modified, run gclient sync.
It runs it by specifying BASE/HEAD to stay at the current revision.
This works around the lack of gclient sync when a DEPS file is applied on the
Try Server when triggered from Rietveld. This was handled my the Try Server
inside scripts/slave/chromium_command.py manually in the case a 'patch' is
specified.

TBR=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@157110 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
ilevy@chromium.org b0f852f372 Fix svn copies for apply_issue
_check_output_svn sets the cwd to project_path
therefore files should not have project_path.

R=maruel@chromium.org,cmp@chromium.org
BUG=149702


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@156953 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
binji@chromium.org 0281f52cf3 Running git cl patch sets the rietveld patchset.
BUG=none


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@156796 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
thakis@chromium.org 79b09c4748 Update ninja to v1.0.0 on Mac and Linux.
On both mac and linux, I ran:
git checkout v1.0.0
ninja
./ninja ninja_test
./ninja_test  # all passed
strip ninja

Changes since the last push:
* NINJA_STATUS can now print rates via the o and c format chars
* The version switch is now --version, -V no longer works
* -t list now works without a build.ninja
* Old .ninja_log files now trigger a rebuild instead of an error
* Missing .d files make the corresponding .o file dirty
* Allow @ and = in paths in depfiles
* Ninja's output is now lower-case ("error:" instead of "ERROR:" etc)
* Lots of Windows features (which doesn't affect Mac and Linux)

On Linux, I switched from gcc4.4.3 to clang r163126. The clang-built
binary is 125856 bytes (compared to 129944 bytes previously), and it does
an empty 'chrome' build about 70ms faster (0.94s instead of 1.01s).

The speed difference is almost completely in faster depfile parsing:

clang-built (0.943s):
$ time ../../ninja/ninja -C out/Release chrome -d stats
ninja: Entering directory `out/Release'
ninja: no work to do.
metric                  count   avg (us)        total (ms)
.ninja parse            716     507.8           363.6
canonicalize str        113486  0.2             27.7
canonicalize path       1305641 0.1             184.1
lookup node             1305641 0.2             200.9
.ninja_log load         1       11144.0         11.1
node stat               37828   2.6             98.0
depfile load            9266    80.9            749.3

path->node hash load 0.98 (48241 entries / 49157 buckets)

real    0m1.162s
user    0m0.980s
sys     0m0.170s


gcc-built (1.013s):
$ time ninja -C out/Release chrome -d stats
ninja: Entering directory `out/Release'
ninja: no work to do.
metric                  count   avg (us)        total (ms)
.ninja parse            716     516.4           369.7
canonicalize str        113486  0.2             27.6
canonicalize path       1305641 0.1             181.0
lookup node             1305641 0.2             260.0
.ninja_log load         1       11012.0         11.0
node stat               37828   2.6             98.2
depfile load            9266    86.3            799.3

path->node hash load 0.98 (48241 entries / 49157 buckets)

real    0m1.220s
user    0m0.970s
sys     0m0.240s



On Mac, I alsow used clang r163126. The binary size stayed at 125104 bytes,
performance didn't change. An empty build of chrome takes 1.26s. While
node stat is a bit slower, and there are more defiles to parse compared
to linux, most of the time difference is in slower .ninja parsing:

mac (1.263s):
$ time ../../ninja/ninja -C out/Release/ chrome -d stats
ninja: Entering directory `out/Release/'
ninja: no work to do.
metric                  count   avg (us)        total (ms)
.ninja parse            687     823.4           565.7
canonicalize str        115002  0.3             31.1
canonicalize path       1120853 0.2             175.6
lookup node             1120853 0.2             202.9
.ninja_log load         1       54126.0         54.1
node stat               38860   4.1             160.4
depfile load            9649    86.1            830.8

path->node hash load 0.99 (48522 entries / 49157 buckets)

real    0m1.478s
user    0m1.121s
sys     0m0.351s

TBR=scottmg
Review URL: https://codereview.chromium.org/10918242

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@156751 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
sbc@chromium.org c965a48422 fix wtf crash when deps entry is at None
There are several places where we advise people
to use custom_deps with { "foo" : None } to avoid
checking out certain sub-repos.  This caused wtf to
crash on startup.


BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@156373 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org de800ff7b0 Fix the patch application sorting.
It relied on a behavior that doesn't hold on python 2.7 anymore w.r.t. tuple
comparison to non-tuple objects.

Now be explicit about having source files to be first.

R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@156355 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
jam@chromium.org 07d44398a2 Switch gcl/git upload to use https://codereview.chromium.org instead of https://chromiumcodereview.appspot.com. It's been a week since the SSL certificate got added, and the old DNS records had a TTL of 7 days.
Review URL: https://chromiumcodereview.appspot.com/10910225

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@156316 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 72e04c7dc7 Update upload.py @ 215ecb2ae628; fixes typo.
TBR=petermayo@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@156105 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 495e57b6bb Rebase explicitly origin/master instead of guessing from the remote.
Not sure this code worked.

R=cmp@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@156059 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
iannucci@chromium.org 1512ab681a Fix git_cl diffstat to use -l100000 to match upload.py
Enables git to correctly detect copies and renames simultaneously.

BUG=144408


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@155899 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 7bf1b5dc72 Update upload.py from upstream at d5f7dffc2dbb.
Fix issue with invalid password in keyring and git renames.

R=petermayo@chromium.org
BUG=144408

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@155898 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 9d72d2b9e0 Ensure buildbot knows that the checkout was patched when patching.
R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@155506 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 1519240e06 Add git cl try that tries from Rietveld.
Thin wrapper to process --bot and --testfilter to keep compability with gcl try
and git-try and pass the data directly to Rietveld.

R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@155176 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 893982033e Change Rietveld.add_comment() to not add the user as a reviewer by default
This is mainly to reduce the spam that the commit queue adds to
commit-bot@chromium.org as all follow up emails on code reviews are sent to it
because it was adding itself as a reviewer, even if it is not.

R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@155141 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org e2e1aec7ec Add stuff that are generated from tests.
Technically, all of these should be generated in /tmp but let's punt that for
now.

TBR=petermayo@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@154965 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 61ea42f080 Add function to trigger try jobs on Rietveld.
R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@154955 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
sbc@chromium.org 495ad15721 Add --force option for presubmit command which
allows one to run the presubmit script without
submitting locally (alternative would be to make 
this a warning I guess).

Also, pass option.verbose through to DoGetTrySlaves()
so it will log which PRESUBMIT files are taking part
in the decision.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@154838 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 083cd45914 Fix apply_issue.py to work on python 2.6 with anonymous request.
Fix RawCheckout support in apply_issue.py.

TBR=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@154703 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 3bf4b3c864 Enable anonymous apply_issue behavior by default and only fall back to login when needed.
Patch in upload.py fix for python 2.7.

TBR=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@154696 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 9dbbe54f8f Handle when a patchset doesn't exist instead of printing a stack trace.
Print a meaningful error message so the user can try diagnosing himself.

R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@154436 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 4c422e9b8c options.from_logs is not used anywhere since it's the default.
R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153976 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
erg@chromium.org 1a17398a93 --bypass-hooks should bypass all checks, including descriptions checks.
(Adding this after the pretty bad build bustage today.)


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153966 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 38ab82d6d8 Add outputs to apply_issue.py
apply_issue.py didn't have output, making it a bit boring. Now it's super cute.

R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153948 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 5536707379 Add Roger to depot_tools/OWNERS.
R=nsylvain@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153940 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 827cb81918 Due to a temporary bug in the try server, ignore '=' as an email address.
This CL shall be reverted once the try server is fixed.

R=rogerta@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153916 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org d7ca616cf1 Enable support to remove the executable bit on the CQ.
R=petermayo@chromium.org
BUG=124817


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153908 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 17fa4beec4 Fix hunk handling for 'default hunk header values'.
Add new test cases to verify it properly handles "-1 +1, 2" and "-1 +1" for
short files.

R=petermayo@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153906 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 5242430342 Enforce coherent type handling in git_cl.py
Issue and patchset can only be int, so store them as ints.
This fixes git cl comment, which was broken by r152756.

R=petermayo@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153885 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org 8f4e5bf7be Enforce issue and patchset being a number in most Rietveld APIs.
This ensures we don't send incorrect values like None or random strings.

R=cmp@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@152756 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
maruel@chromium.org d254e84506 Fix depot_tools presubmit check for ubuntu 12.04.
R=cmp@chromium.org
BUG=


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

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