- 15 Nov, 2011 1 commit
-
-
maruel@chromium.org authored
Change return value from list to tuple for communicate(timeout != None). R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8539015 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@110094 0039d316-1c4b-4281-b951-d872f2087c98
-
- 12 Nov, 2011 2 commits
-
-
cmp@chromium.org authored
Review URL: http://codereview.chromium.org/8536043 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109750 0039d316-1c4b-4281-b951-d872f2087c98
-
jeffbailey@chromium.org authored
the current canonical upstream. The Chromium mirror is out of date. Review URL: http://codereview.chromium.org/8540026 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109742 0039d316-1c4b-4281-b951-d872f2087c98
-
- 11 Nov, 2011 5 commits
-
-
jhawkins@chromium.org authored
Queries omahaproxy.appspot.com for related branch number. Review URL: http://codereview.chromium.org/8498038 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109718 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8536018 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109697 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Add relevant new tests. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8539016 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109692 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
It will simplify importing utility modules from other projects. Otherwise I was getting name conflicts with 'test'. Reenable W0403 that was disabled in the previous CL. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8508015 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109636 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109635 0039d316-1c4b-4281-b951-d872f2087c98
-
- 10 Nov, 2011 3 commits
-
-
maruel@chromium.org authored
Disable temporarily W0403, will be reenabled on the next CL R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8508017 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109435 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
The main fix is 'Accept new empty files, like __init__.py' TBR=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8519005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109431 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
"Add callback support for stdout and stderr." "Add tests for both universal_newlines=True and False." "Implement accelerated tee support for POSIX." The reason is that the semantic of subprocess2.check_call(cmd, timeout=60, stderr=subprocess2.STDOUT) changed, stderr wasn't redirected to VOID anymore and for an unknown reason, it was hanging until the timeout happened. Will reapply r109239 with a new regression test to detect that bug. TBR=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8505046 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109369 0039d316-1c4b-4281-b951-d872f2087c98
-
- 09 Nov, 2011 5 commits
-
-
maruel@chromium.org authored
subprocess2.check_output() raises an OSError instead of a CalledProcessError when the executable is not found. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8511025 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109325 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
This removes all the need of threading, which removes the contention on the GIL lock. Taking S2Test.test_check_output_tee_large as baseline, numbers are real/user/sys in seconds: Ubuntu workstation: ~25x 2.4/1.9/1.5 -> 0.10/0.70/0.02 OSX 10.6 laptop: ~40x 6.4/5.3/3.9 -> 0.15/0.80/0.07 Cygwin on win7: ~4x 2.8/2.2/1.3 -> 0.60/0.16/0.30 R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8462008 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109283 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Fix stdout+stderr on Windows to binary mode in the child test process to make sure testing is done correctly. R=dpranke@chromium.org BUG= TEST=manually tested on OSX, Windows, cygwin and ubuntu Review URL: http://codereview.chromium.org/8472002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109282 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
It's currently an inefficient thread implementation. Interestingly enough, callback support is significantly faster on cygwin than on native python. Writing an efficient implementation is punted for a later change, one per implementation. Stops using a temporary file since it's not necessary anymore. The goal is to reduce the number of places where a similar paradigm is used by having a canonical generic implementation. R=dpranke@chromium.org BUG= TEST=Tested manually on Windows, cygwin, linux, OSX 10.6 Review URL: http://codereview.chromium.org/8374026 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109239 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
.tac files are used for twisted applications, like buildbot. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8501022 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@109238 0039d316-1c4b-4281-b951-d872f2087c98
-
- 07 Nov, 2011 1 commit
-
-
maruel@chromium.org authored
Otherwise, silly checks like EOL whitespace triggers constantly. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8494013 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@108899 0039d316-1c4b-4281-b951-d872f2087c98
-
- 01 Nov, 2011 1 commit
-
-
maruel@chromium.org authored
This would cause random try job failures, especially when switching around DEPS <-> svn directory conversion. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8431021 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@108144 0039d316-1c4b-4281-b951-d872f2087c98
-
- 28 Oct, 2011 1 commit
-
-
stevet@chromium.org authored
TEST=Run a passthru command like gcl di or gcl revert without a changelist name. Ensure that gcl exits with an error message. BUG=none Review URL: http://codereview.chromium.org/8413015 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@107663 0039d316-1c4b-4281-b951-d872f2087c98
-
- 27 Oct, 2011 2 commits
-
-
maruel@chromium.org authored
BUG= TEST= Review URL: http://codereview.chromium.org/8353039 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@107590 0039d316-1c4b-4281-b951-d872f2087c98
-
stevet@chromium.org authored
Fixed slight bug in CMDpassthru where the command name was being passed to the CL Load rather than the CL name. TEST=Try passthru commands like gcl revert and gcl stat and ensure that they perform as expected on each file in a CL. BUG=none Review URL: http://codereview.chromium.org/8404044 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@107576 0039d316-1c4b-4281-b951-d872f2087c98
-
- 25 Oct, 2011 4 commits
-
-
cmp@chromium.org authored
BUG=79356 Review URL: http://codereview.chromium.org/8394016 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@107212 0039d316-1c4b-4281-b951-d872f2087c98
-
cmp@chromium.org authored
BUG=79356 Review URL: http://codereview.chromium.org/8369019 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@107206 0039d316-1c4b-4281-b951-d872f2087c98
-
asvitkine@chromium.org authored
BUG=none TEST=none Review URL: http://codereview.chromium.org/8395005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@107129 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Windows users wouldn't get the same behavior on git cl vs gcl. Improve automatic CRLF<->LF conversion, some gcl users would be \n repeated in their description depending on the editor used. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8360007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@107106 0039d316-1c4b-4281-b951-d872f2087c98
-
- 23 Oct, 2011 4 commits
-
-
maruel@chromium.org authored
Instead of crashing, prints an error message. BUG= TEST= Review URL: http://codereview.chromium.org/8363030 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106867 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8366042 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106866 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
isatty() wasn't defined on Windows, causing it to crash. R=dpranke@chromium.org BUG= TEST=manually gclient sync on windows Review URL: http://codereview.chromium.org/8371006 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106865 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Otherwise isatty() could not be proxied correctly. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8370004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106864 0039d316-1c4b-4281-b951-d872f2087c98
-
- 21 Oct, 2011 3 commits
-
-
maruel@chromium.org authored
Crashes. git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106709 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
For now only affect gclient help to figure out if there is any issue with it. Because of the way it's done, there is no way to disable coloring, which could be annoying when redirected. This needs to be taken in consideration. R=dpranke@chromium.org TEST=manually tested on linux, cygwin and windows, both run manually and redirected to a text file. BUG= Review URL: http://codereview.chromium.org/8365001 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106708 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8361006 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106706 0039d316-1c4b-4281-b951-d872f2087c98
-
- 20 Oct, 2011 3 commits
-
-
maruel@chromium.org authored
directory doesn't exist, on fresh checkout and --jobs >1. It happens in the case where there is 3 dependencies: a a/b/c/d a/b/c/e 'a' is processed first. Then 'a/b/c/d' and 'a/b/c/e' are fired simultaneously. If both are not present, both svn checkout tries to mkdir b and b/c and a race condition occurs between their call for isdir() and mkdir(). This works around the issue by creating the intermediary directories ourself before calling out svn and managing the error ourself. TBR=dpranke@chromium.org BUG= TEST=fresh checkout shouldn't be flaky Review URL: http://codereview.chromium.org/8359018 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106636 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
This eats stdout while gcl is committing, which is annoying. It needs tee-like support first. Will revisit this change later, reverting in the meantime. TBR=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8344085 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106498 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Reuse a common lock to reduce the number of locks created. Poor cygwin users. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8353010 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106494 0039d316-1c4b-4281-b951-d872f2087c98
-
- 19 Oct, 2011 4 commits
-
-
maruel@chromium.org authored
R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8357005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106359 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8355007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106358 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
It's not supported at the moment and it's misleading. Support for it should be added eventually. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8357014 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106351 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Otherwise, I get a stack trace, which is annoying. Here's an example: $ git cl upload Current branch help_text is up to date. Failed to diff against upstream branch refs/heads/foo! This branch probably doesn't exist anymore. To reset the tracking branch, please run git branch --set-upstream help_text trunk replacing trunk with origin/master or the relevant branch R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8349011 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106175 0039d316-1c4b-4281-b951-d872f2087c98
-
- 18 Oct, 2011 1 commit
-
-
maruel@chromium.org authored
Fix a problem introduced in r105229. R=cmp@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8349001 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@106089 0039d316-1c4b-4281-b951-d872f2087c98
-