From bd1073ebe6fcdddc25289eab9afb41afc52865da Mon Sep 17 00:00:00 2001 From: "alancutter@chromium.org" Date: Sat, 1 Jun 2013 00:34:38 +0000 Subject: [PATCH] Change to 72 column reference in git cl upload message 76 columns is fine for most patches but reverts will eat another 4 spaces in indentation. For the sake of revert clarity this reference line is reduced to 72 columns. Review URL: https://chromiumcodereview.appspot.com/16152005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@203530 0039d316-1c4b-4281-b951-d872f2087c98 --- git_cl.py | 4 ++-- tests/git_cl_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/git_cl.py b/git_cl.py index 02f20b5bf8..01fe0767af 100755 --- a/git_cl.py +++ b/git_cl.py @@ -864,8 +864,8 @@ class ChangeDescription(object): '# Enter a description of the change.\n' '# This will be displayed on the codereview site.\n' '# The first line will also be used as the subject of the review.\n' - '#----------------------This line is 76 characters long' - '----------------------\n' + '#--------------------This line is 72 characters long' + '--------------------\n' ) + self._description if '\nBUG=' not in self._description: diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py index fc7455cdf5..ca1aff2242 100755 --- a/tests/git_cl_test.py +++ b/tests/git_cl_test.py @@ -386,8 +386,8 @@ class TestGitCl(TestCase): '# Enter a description of the change.\n' '# This will be displayed on the codereview site.\n' '# The first line will also be used as the subject of the review.\n' - '#----------------------This line is 76 characters long' - '----------------------\n' + + '#--------------------This line is 72 characters long' + '--------------------\n' + expected_description, desc) return returned_description