- 25 Mar, 2011 2 commits
-
-
dpranke@chromium.org authored
Review URL: http://codereview.chromium.org/6736018 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79356 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Mostly happening on Mac. Will investigate later. TBR=dpranke BUG= TEST= Review URL: http://codereview.chromium.org/6696094 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79354 0039d316-1c4b-4281-b951-d872f2087c98
-
- 24 Mar, 2011 10 commits
-
-
dpranke@chromium.org authored
This fixes bugs 76724. We will now allow approvals from only non-owners to be sufficient if the patch is from an OWNER. Also, this strips out the code for suggesting reviewers during upload completely. I've come to believe that this should be done by gcl and git-cl directly rather than through a presubmit hook, when the change is being initially created. CheckOwners() is now a no-op on upload. (We might need to add a new value to the codereview.settings file instead to indicate if we want this to happen). Review URL: http://codereview.chromium.org/6730020 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79339 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Otherwise the local Rietveld instance could mysteriously hang. TEST=presubmit check won't fail even if an old version of the SDK is used BUG=none Review URL: http://codereview.chromium.org/6652002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79338 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
should never import any modules directly but always access modules through input_api. Review URL: http://codereview.chromium.org/6676128 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79337 0039d316-1c4b-4281-b951-d872f2087c98
-
bradnelson@google.com authored
projects. BUG=None TEST=None R=erikkay@chromium.org,dpranke@chromium.org,maruel@chromium.org Review URL: http://codereview.chromium.org/6713101 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79316 0039d316-1c4b-4281-b951-d872f2087c98
-
thomasvl@chromium.org authored
Review URL: http://codereview.chromium.org/6676119 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79301 0039d316-1c4b-4281-b951-d872f2087c98
-
thomasvl@chromium.org authored
BUG=none TEST=none Review URL: http://codereview.chromium.org/6732023 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79298 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Removed all the local hacks as they are not necessary anymore. R=dpranke@chromium.org BUG=none TEST=manually verified that HTTP 302 redirect works fine. Review URL: http://codereview.chromium.org/6730004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79296 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Generate a fake diff instance of crashing. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/6721030 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79290 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
This reduces the likehood of conflict with local server and makes possible to run this check two times in parallel. R=dpranke@chromium.org TEST=moar unit tests BUG=none Review URL: http://codereview.chromium.org/6725042 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79281 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
This fixes an issue where we would suggest '*' and then choke on the text down the road. Also, the suggestions were not yet very useful. R=maruel@chromium.org Review URL: http://codereview.chromium.org/6722014 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79227 0039d316-1c4b-4281-b951-d872f2087c98
-
- 23 Mar, 2011 5 commits
-
-
maruel@chromium.org authored
R=dpranke@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6676093 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79217 0039d316-1c4b-4281-b951-d872f2087c98
-
tony@chromium.org authored
with python 2.5.1. Traceback (most recent call last): File "/Users/tc/depot_tools/gclient.py", line 1270, in <module> fix_encoding.fix_encoding() File "/Users/tc/depot_tools/fix_encoding.py", line 350, in fix_encoding ret &= fix_default_encoding() File "/Users/tc/depot_tools/fix_encoding.py", line 51, in fix_default_encoding lang = locale.getlocale(aref)[0] File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 460, in getlocale return _parse_localename(localename) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 373, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: C/UTF-8/C/C/C/C R=dpranke@chromium.org,chase@chromium.org,bradnelson@google.com,maruel@chromium.org,evan@chromium.org,nsylvain@chromium.org,nsylvain@google.com Review URL: http://codereview.chromium.org/6730008 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79213 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
Review URL: http://codereview.chromium.org/6717004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79206 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Reapply r79006 with fixes for ubuntu 10.4. The only change is in fix_default_encoding() to trap an exception locale.getlocale() may throw. R=dpranke@chromium.org BUG=none TEST=unit test Review URL: http://codereview.chromium.org/6721029 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79144 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Otherwise it's painful when using tricks like $(git cl upstream). R=sky@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/6727012 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79084 0039d316-1c4b-4281-b951-d872f2087c98
-
- 22 Mar, 2011 4 commits
-
-
maruel@chromium.org authored
It is causing exception for some users on ubuntu 10.4 with: "category LC_ALL is not supported" TBR=dpranke Review URL: http://codereview.chromium.org/6717025 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79012 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
With this code in action, I can successfully print arabic and chinese on linux and cygwin. It fails to print chinese on my Mac but prints arabic. It prints '?' on Windows console but it *doesn't throw* which is the biggest improvement here. It was particularly a problem on windows because WindowsError's description text is in the current ANSI code page so it failed to print if the text was not pure ASCII, like error message when using Windows' French UI. R=dpranke@chromium.org BUG=none TEST=manual unit test ./tests/fix_encoding_test.py and it shouldn't throw Review URL: http://codereview.chromium.org/6676090 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79006 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
TBR=maruel@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79005 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
The parsing of change descriptions had a lot of overlap and inconsistencies between gcl and git-cl. In particular, we weren't handling TBR= consistently, or probably a few other things. This change moves most of the code into presubmit_support and gclient_utils and just leaves the formatting differences for the messages between the two tools. Review URL: http://codereview.chromium.org/6719004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79002 0039d316-1c4b-4281-b951-d872f2087c98
-
- 18 Mar, 2011 4 commits
-
-
bauerb@chromium.org authored
BUG=none TEST=manual Review URL: http://codereview.chromium.org/6598068 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78741 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Split presubmit_support.Main() in two to make it simpler. Handle better the case with unversioned files and add a unit test. R=dpranke@chromium.org Review URL: http://codereview.chromium.org/6674059 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78700 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
TBR=maruel@chromium.org Review URL: http://codereview.chromium.org/6714008 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78668 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
pass pylint cleanly. There should be no functional changes in this patch, although there's at least one minor bug that lint caught. Review URL: http://codereview.chromium.org/6685023 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78638 0039d316-1c4b-4281-b951-d872f2087c98
-
- 17 Mar, 2011 8 commits
-
-
dpranke@chromium.org authored
R=chase@chromium.org,maruel@chromium.org Review URL: http://codereview.chromium.org/6676058 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78632 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
R=maruel@chromium.org,chase@chromium.org Review URL: http://codereview.chromium.org/6667072 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78630 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
output object, I forgot to modify the commit command, and so now we're ignoring failures complete. That's not good :( Landing w/o review (but with unit tests!) to minimize damage. Review URL: http://codereview.chromium.org/6688017 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78627 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
R=chase@chromium.org,maruel@chromium.org Review URL: http://codereview.chromium.org/6674049 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78601 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
R=chase@chromium.org,maruel@chromium.org Review URL: http://codereview.chromium.org/6712007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78599 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Necessary for commit queue. R=dpranke@chromium.org Review URL: http://codereview.chromium.org/6698041 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78538 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
bugs that for some reason the presubmit missed the first time around. TBR=chase@chromium.org,maruel@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78497 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
Fix gcl to pass in the suggested owners properly in order to fix the bug introduced in r78329 (we were passing in a generator to the owners object and it needed to be a list). Fix a couple of other minor bugs related to suggesting reviewers while we're at it. R=chase@chromium.org,maruel@chromium.org Review URL: http://codereview.chromium.org/6673104 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78486 0039d316-1c4b-4281-b951-d872f2087c98
-
- 16 Mar, 2011 6 commits
-
-
dpranke@chromium.org authored
R=chase@chromium.org,maruel@chromium.org Review URL: http://codereview.chromium.org/6677090 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78454 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
"Fix regression introduced in r78329." "Modify gcl to use suggested_reviewer output from presubmit_support." My quick fix was insufficient. TBR=dpranke Review URL: http://codereview.chromium.org/6667042 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78356 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
This really needs a unit test. TBR=dpranke TEST=none Review URL: http://codereview.chromium.org/6670046 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78355 0039d316-1c4b-4281-b951-d872f2087c98
-
mhm@chromium.org authored
EDITOR environment variable shouldn't be required anymore can contain quotes and multiple arguments. Uses shell=True to let the shell parse the quoted string instead of handling all forms of quotes ourselves. By default, msysgit ships with the TERM environment variable set, when set to 'msys', we prepend 'env' to the executed command. That is required so msys knows which program to run the given file. BUG=none TEST=On many platforms. Win7, WinXP, Ubuntu. Review URL: http://codereview.chromium.org/6685062 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78332 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
Review URL: http://codereview.chromium.org/6696010 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78329 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
This change moves the code I added to git-cl to parse the results of the presubmit hooks into presubmit_support itself. It also removes a lot of the text-file parsing that is no longer necessary since everything is in process. It also simplifies all of the PresubmitResult* objects and the way we're using output streams since we can assume more about how the callers are calling us. Note that I uses PEP-8 style method names where I was adding entirely new classes (or rewriting existing classes completely) since per maruel@ he is trying to new that style for new code. This change also contains two small changes to git_cl to fix bugs and restore the previous behavior of --force skipping the presubmit checks. Review URL: http://codereview.chromium.org/6694009 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78328 0039d316-1c4b-4281-b951-d872f2087c98
-
- 15 Mar, 2011 1 commit
-
-
maruel@chromium.org authored
Revert the order back to deleting then svn revert'ing, which is safer than the reverse. Document a bit better the behavior. R=dpranke@chromium.org BUG=none TEST=commit queue should die less often Review URL: http://codereview.chromium.org/6681032 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78224 0039d316-1c4b-4281-b951-d872f2087c98
-