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

Issue 1705193003: Use %B format instead of %s\n\n%b to get the raw commit message from a hash. (Closed)

Created:
4 years, 10 months ago by Bernhard Bauer
Modified:
4 years, 10 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

Use %B format instead of %s\n\n%b to get the raw commit message from a hash. \n doesn't work on Windows, and %B is shorter anyway. BUG=586344 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298845

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M git_cl.py View 1 chunk +1 line, -1 line 2 comments Download
M tests/git_cl_test.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
Bernhard Bauer
Please review. There are some more instances of %s\n\n%b in there (used e.g. for creating ...
4 years, 10 months ago (2016-02-18 09:49:37 UTC) #2
tandrii(chromium)
lgtm
4 years, 10 months ago (2016-02-18 10:03:54 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705193003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705193003/1
4 years, 10 months ago (2016-02-18 10:16:34 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as http://src.chromium.org/viewvc/chrome?view=rev&revision=298845
4 years, 10 months ago (2016-02-18 10:18:31 UTC) #7
scottmg
https://codereview.chromium.org/1705193003/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1705193003/diff/1/git_cl.py#newcode2081 git_cl.py:2081: '-m', message]).strip() Will message still be multiline? I think ...
4 years, 10 months ago (2016-02-18 18:02:48 UTC) #8
Bernhard Bauer
4 years, 10 months ago (2016-02-18 20:12:18 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1705193003/diff/1/git_cl.py
File git_cl.py (right):

https://codereview.chromium.org/1705193003/diff/1/git_cl.py#newcode2081
git_cl.py:2081: '-m', message]).strip()
On 2016/02/18 18:02:48, scottmg wrote:
> Will message still be multiline? I think this will end up only getting the
first
> line still.

Dunno… is that different on Windows? I could imagine that things are different
now that we are going to have the real commit message, not the one with \n after
the first line. But really… would you mind just testing it? :)

Powered by Google App Engine
This is Rietveld 408576698