Commit 624973b7 authored by dpranke@chromium.org's avatar dpranke@chromium.org

Fix some of the spacing in the description.

R=chase@chromium.org,maruel@chromium.org
Review URL: http://codereview.chromium.org/6674049

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78601 0039d316-1c4b-4281-b951-d872f2087c98
parent 1b98c432
...@@ -1097,12 +1097,15 @@ def CMDchange(args): ...@@ -1097,12 +1097,15 @@ def CMDchange(args):
unaffected_files = [x for x in other_files if not file_re.match(x[0])] unaffected_files = [x for x in other_files if not file_re.match(x[0])]
if not change_info.reviewers: if not change_info.reviewers:
suggested_reviewers = suggest_reviewers(change_info, affected_files) files_for_review = affected_files[:]
files_for_review.extend(change_info.GetFiles())
suggested_reviewers = suggest_reviewers(change_info, files_for_review)
if suggested_reviewers: if suggested_reviewers:
reviewers_re = re.compile(REVIEWERS_REGEX) reviewers_re = re.compile(REVIEWERS_REGEX)
if not any( if not any(reviewers_re.match(l) for l in description.splitlines()):
reviewers_re.match(l) for l in description.splitlines()): description += '\n\nR=' + ','.join(suggested_reviewers)
description += '\nR=' + ','.join(suggested_reviewers) + '\n'
description = description.rstrip() + '\n'
separator1 = ("\n---All lines above this line become the description.\n" separator1 = ("\n---All lines above this line become the description.\n"
"---Repository Root: " + change_info.GetLocalRoot() + "\n" "---Repository Root: " + change_info.GetLocalRoot() + "\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment