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

Issue 1166673002: Fix bug in git cl patch using raw patch URL. (Closed)

Created:
5 years, 6 months ago by kjellander_chromium
Modified:
5 years, 6 months ago
Reviewers:
agable
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
tools
Visibility:
Public.

Description

Fix bug in git cl patch using raw patch URL. When using a raw URL from a different Rietveld instance than the one in codereview.settings, you get an error like this: File "depot_tools/git_cl.py", line 2767, in PatchIssue RunGit(['commit', '-m', (cl.GetDescription() + '\n\n' + UnboundLocalError: local variable 'cl' referenced before assignment This fixes that. It is needed for the WebRTC transition to the Chromium Rietveld instance using https://codereview.webrtc.org BUG=webrtc:3884 TESTED=In a WebRTC checkout: ran 'git cl patch https://codereview.webrtc.org/download/issue1135893005_1.diff' on a clean branch and had it apply correctly. In a Chromium checkout, ran 'git cl patch 1154023002' and verified the commit message was correct. I also ran using the raw URL and verified the result was the same. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=295491

Patch Set 1 #

Total comments: 2

Patch Set 2 : Parsing Rietveld server for raw patch instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M git_cl.py View 1 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
kjellander_chromium
5 years, 6 months ago (2015-06-01 11:49:23 UTC) #2
agable
https://codereview.chromium.org/1166673002/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1166673002/diff/1/git_cl.py#newcode2768 git_cl.py:2768: commit_message = cl.GetDescription() + '\n\n' if arg_is_issue_id else '' ...
5 years, 6 months ago (2015-06-01 21:22:54 UTC) #3
kjellander_chromium
https://codereview.chromium.org/1166673002/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1166673002/diff/1/git_cl.py#newcode2768 git_cl.py:2768: commit_message = cl.GetDescription() + '\n\n' if arg_is_issue_id else '' ...
5 years, 6 months ago (2015-06-02 07:47:10 UTC) #4
agable
lgtm
5 years, 6 months ago (2015-06-02 17:39:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1166673002/20001
5 years, 6 months ago (2015-06-02 18:32:37 UTC) #7
commit-bot: I haz the power
5 years, 6 months ago (2015-06-02 18:35:32 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=295491

Powered by Google App Engine
This is Rietveld 408576698