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

Issue 1838143002: git cl: Rework Changelist class for Rietveld/Gerrit use. (Closed)

Created:
4 years, 8 months ago by tandrii(chromium)
Modified:
4 years, 8 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

git cl: Rework Changelist class for Rietveld/Gerrit use. This adds pluggable codereview-specific implementations into Changelist class. The specific implementation is chosen at Changelist automatically, with Rietveld being default for backwards compatibility. Gerrit implementation for Gerrit is incomplete, and will be added in later CLs. However, it is sufficient to ensure current functionality of this tool is not diminished. Sadly, the base class isn't completely free from Rietveld assumptions because of presubmit_support. Apparently, PRESUBMIT scripts can make use of Rietveld instance for RPCs directly. This use doesn't make sense for Gerrit, which substitutes rietveld instance with a dummy object, which raises exception on any attribute access with a diagnostic message. This also includes refactoring of some related code which (ab)used ChangeList. Overall, this CL adds a few extra call to git config in order to determine which codereview to use, but but it shouldn't have any performance impact. These is a reland of these 4 CLs + with several fixes. patch from issue 1827523003 at patchset 20001 (http://crrev.com/1827523003#ps20001) patch from issue 1830703004 at patchset 1 (http://crrev.com/1830703004#ps1) patch from issue 1830923002 at patchset 60001 (http://crrev.com/1830923002#ps60001) patch from issue 1805193002 at patchset 380001 (http://crrev.com/1805193002#ps380001) This CL without a fix was also committed and reverted as patch from issue 1830973003 at patchset 40001 (http://crrev.com/1830973003#ps40001) R=machenbach@chromium.org,sergiyb@chromium.org,andybons@chromium.org BUG=579160, 597638 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=299530

Patch Set 1 : original that landed before #

Patch Set 2 : +fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+427 lines, -155 lines) Patch
M git_cl.py View 1 21 chunks +396 lines, -129 lines 0 comments Download
M tests/git_cl_test.py View 12 chunks +31 lines, -26 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
tandrii(chromium)
PTAL for ease of review, see the diff between PS#1 that already landed and PS#2 ...
4 years, 8 months ago (2016-03-29 09:31:38 UTC) #1
Sergiy Byelozyorov
lgtm
4 years, 8 months ago (2016-03-29 09:38:05 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1838143002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1838143002/20001
4 years, 8 months ago (2016-03-29 09:38:58 UTC) #4
commit-bot: I haz the power
Committed patchset #2 (id:20001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=299530
4 years, 8 months ago (2016-03-29 09:41:16 UTC) #6
Michael Achenbach
4 years, 8 months ago (2016-04-12 12:34:07 UTC) #7
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698