- 22 Mar, 2011 3 commits
-
-
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 2 commits
-
-
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
-
bauerb@chromium.org authored
Original review: http://codereview.chromium.org/6650025/ BUG=none TEST=`git try foo` gives a proper error message. Review URL: http://codereview.chromium.org/6612036 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78180 0039d316-1c4b-4281-b951-d872f2087c98
-
- 14 Mar, 2011 8 commits
-
-
dpranke@chromium.org authored
http://codereview.chromium.org/6665018/ Review URL: http://codereview.chromium.org/6686060 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78098 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
Review URL: http://codereview.chromium.org/6684026 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78089 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
default and can fill the pipe used by subprocess.Popen(), leading to hangs. Review URL: http://codereview.chromium.org/6684025 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78084 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
then at some point prior to my recent changes "git-cl upload master..." stopped working and you need to do only "git-cl upload master". Review URL: http://codereview.chromium.org/6679033 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78082 0039d316-1c4b-4281-b951-d872f2087c98
-
thomasvl@chromium.org authored
BUG=none TEST=none Review URL: http://codereview.chromium.org/6690012 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78029 0039d316-1c4b-4281-b951-d872f2087c98
-
thomasvl@chromium.org authored
something with spaces in it. BUG=none TEST=none Review URL: http://codereview.chromium.org/6686046 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78027 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
An error message would be printed at each update_depot_tools invocation. TBR=mhm BUG=none TEST=running gclient shouldn't print an error message at each invocation anymore Review URL: http://codereview.chromium.org/6690008 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78021 0039d316-1c4b-4281-b951-d872f2087c98
-
mhm@chromium.org authored
BUG=none TEST=message appears only when new revision changes. Review URL: http://codereview.chromium.org/6691001 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77997 0039d316-1c4b-4281-b951-d872f2087c98
-
- 13 Mar, 2011 5 commits
-
-
dpranke@chromium.org authored
Fix prompting - had the logic backwards. The git-cl unit tests actually test the prompting correctly (once they are modified to pass otherwise). Review URL: http://codereview.chromium.org/6679032 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77985 0039d316-1c4b-4281-b951-d872f2087c98
-
mhm@chromium.org authored
BUG=70548 TEST=check $TERM in windows Review URL: http://codereview.chromium.org/6683035 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77978 0039d316-1c4b-4281-b951-d872f2087c98
-
jam@chromium.org authored
It is cleaner this way since in Win32 console, the value is always "dumb" while in msysgit it is always "msys" The user shouldn't change the value of $TERM in msysgit otherwise their whole copy of msysgit will be flaky. BUG=70548 TEST=check $TERM in windows Review URL: http://codereview.chromium.org/6686027 TBR=mhm@chromium.org Review URL: http://codereview.chromium.org/6683033 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77972 0039d316-1c4b-4281-b951-d872f2087c98
-
dpranke@chromium.org authored
Review URL: http://codereview.chromium.org/6681019 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77955 0039d316-1c4b-4281-b951-d872f2087c98
-
mhm@chromium.org authored
It is cleaner this way since in Win32 console, the value is always "dumb" while in msysgit it is always "msys" The user shouldn't change the value of $TERM in msysgit otherwise their whole copy of msysgit will be flaky. BUG=70548 TEST=check $TERM in windows Review URL: http://codereview.chromium.org/6686027 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77954 0039d316-1c4b-4281-b951-d872f2087c98
-
- 12 Mar, 2011 4 commits
-
-
maruel@chromium.org authored
It would fail on win32 when these modules are not present. BUG=75902 TEST=none R=mhm@chromium.org Review URL: http://codereview.chromium.org/6683028 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77947 0039d316-1c4b-4281-b951-d872f2087c98
-
mhm@chromium.org authored
An explicit msysgit check is needed since it requires the usage of 'env' to open the editor. BUG=70550, 70548 TEST=Win,Linux Review URL: http://codereview.chromium.org/6680019 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77946 0039d316-1c4b-4281-b951-d872f2087c98
-
jam@chromium.org authored
gcl is now fully compatible with msysgit. BUG=70550 TEST=gcl change through msysgit. Review URL: http://codereview.chromium.org/6689001 TBR=mhm@chromium.org Review URL: http://codereview.chromium.org/6679026 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77929 0039d316-1c4b-4281-b951-d872f2087c98
-
jam@chromium.org authored
Editor doesn't come up due to Shell=True BUG=none TEST=linux and win works Review URL: http://codereview.chromium.org/6679023 TBR=mhm@chromium.org Review URL: http://codereview.chromium.org/6684022 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77928 0039d316-1c4b-4281-b951-d872f2087c98
-