Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Issue 25686005: Return unicode commit hashes in checkout.GitCheckout (Closed)

Created:
7 years, 2 months ago by rmistry
Modified:
7 years, 2 months ago
Reviewers:
iannucci, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org, skiabot_google.com
Visibility:
Public.

Description

Return unicode commit hashes in checkout.GitCheckout. The motivation for this CL is: When a project is turned on to use GitCheckout with try job verifiers, then the CQ crashes because of line 64 in http://src.chromium.org/viewvc/chrome/trunk/tools/commit-queue/pending_manager.py This is because revision can only be one of (None, int, unicode). This crash only happens when try jobs are used (which is why I did not see it before). This CL changes the return type to be unicode instead of string. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=226743

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M checkout.py View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/checkout_test.py View 1 2 chunks +6 lines, -2 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
rmistry
7 years, 2 months ago (2013-10-02 17:18:09 UTC) #1
rmistry
7 years, 2 months ago (2013-10-02 17:18:27 UTC) #2
iannucci
https://codereview.chromium.org/25686005/diff/3001/tests/checkout_test.py File tests/checkout_test.py (right): https://codereview.chromium.org/25686005/diff/3001/tests/checkout_test.py#newcode383 tests/checkout_test.py:383: self.assertEquals(unicode, type(git_rev)) hmm... can't we just change the expected ...
7 years, 2 months ago (2013-10-02 18:24:36 UTC) #3
rmistry
https://codereview.chromium.org/25686005/diff/3001/tests/checkout_test.py File tests/checkout_test.py (right): https://codereview.chromium.org/25686005/diff/3001/tests/checkout_test.py#newcode383 tests/checkout_test.py:383: self.assertEquals(unicode, type(git_rev)) On 2013/10/02 18:24:36, iannucci wrote: > hmm... ...
7 years, 2 months ago (2013-10-02 19:02:12 UTC) #4
M-A Ruel
At the beginning I didn't like this CL but I don't mind much. It gets ...
7 years, 2 months ago (2013-10-03 01:04:05 UTC) #5
iannucci
On 2013/10/03 01:04:05, M-A Ruel wrote: > At the beginning I didn't like this CL ...
7 years, 2 months ago (2013-10-03 01:05:37 UTC) #6
rmistry
On 2013/10/03 01:05:37, iannucci wrote: > On 2013/10/03 01:04:05, M-A Ruel wrote: > > At ...
7 years, 2 months ago (2013-10-03 12:40:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmistry@google.com/25686005/3001
7 years, 2 months ago (2013-10-03 12:41:52 UTC) #8
commit-bot: I haz the power
7 years, 2 months ago (2013-10-03 12:43:41 UTC) #9
Message was sent while issue was closed.
Change committed as 226743

Powered by Google App Engine
This is Rietveld 408576698