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

Issue 6891003: Add post_process argument to Checkout.apply_patch(). (Closed)

Created:
9 years, 8 months ago by M-A Ruel
Modified:
9 years, 7 months ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

Add post_process argument to Checkout.apply_patch(). This enables doing late modifications like updating the copyright notice or fixing line endings. Also silence the checkout operations a bit more when VOID=subprocess2.VOID. Add corresponding unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82587

Patch Set 1 #

Total comments: 2

Patch Set 2 : post_processor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -15 lines) Patch
M checkout.py View 1 12 chunks +36 lines, -15 lines 0 comments Download
M patch.py View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/checkout_test.py View 4 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
M-A Ruel
Required for http://codereview.chromium.org/6880115/
9 years, 8 months ago (2011-04-21 19:37:23 UTC) #1
Dirk Pranke
LGTM. http://codereview.chromium.org/6891003/diff/1/checkout.py File checkout.py (right): http://codereview.chromium.org/6891003/diff/1/checkout.py#newcode132 checkout.py:132: for post in post_process: I probably wouldn't call ...
9 years, 8 months ago (2011-04-21 20:28:02 UTC) #2
M-A Ruel
http://codereview.chromium.org/6891003/diff/1/checkout.py File checkout.py (right): http://codereview.chromium.org/6891003/diff/1/checkout.py#newcode132 checkout.py:132: for post in post_process: On 2011/04/21 20:28:02, Dirk Pranke ...
9 years, 8 months ago (2011-04-21 20:37:33 UTC) #3
Dirk Pranke
9 years, 8 months ago (2011-04-21 21:54:39 UTC) #4
On 2011/04/21 20:37:33, Marc-Antoine Ruel wrote:
> http://codereview.chromium.org/6891003/diff/1/checkout.py
> File checkout.py (right):
> 
> http://codereview.chromium.org/6891003/diff/1/checkout.py#newcode132
> checkout.py:132: for post in post_process:
> On 2011/04/21 20:28:02, Dirk Pranke wrote:
> > I probably wouldn't call this 'post', simply because of the association I
have
> > with posting messages or http requests. Maybe 'process', or 'processor', or
> > 'handler', or 'callback' or 'fn' or something more generic?
> 
> post_processors? Otherwise "process" or "processor" is even more generic.
 
post_processor seems fine.

Powered by Google App Engine
This is Rietveld 408576698