From 2e559c98e6de6730da99e4acf1ec112ec3607dca Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Mon, 22 May 2017 11:39:09 -0700 Subject: [PATCH] git-cl: remove unnecessary similarity notice This information is redundant when using Gerrit, and is well known to anyone still using Rietveld. Change-Id: I03119a84edb67fd20fbe5e2a8e0f0975e69558ed Reviewed-on: https://chromium-review.googlesource.com/510923 Reviewed-by: Andrew Bonventre Commit-Queue: Aaron Gable --- git_cl.py | 3 --- tests/git_cl_test.py | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/git_cl.py b/git_cl.py index 390f4b4f1..8bb7cd091 100755 --- a/git_cl.py +++ b/git_cl.py @@ -324,9 +324,6 @@ def add_git_similarity(parser): else: _git_set_branch_config_value('git-find-copies', bool(options.find_copies)) - print('Using %d%% similarity for rename/copy detection. ' - 'Override with --similarity.' % options.similarity) - return options, args parser.parse_args = Parse diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py index 95d75d146..e9ceb3d76 100755 --- a/tests/git_cl_test.py +++ b/tests/git_cl_test.py @@ -982,10 +982,7 @@ class TestGitCl(TestCase): self.mock(sys, 'stdout', stdout) with self.assertRaises(SystemExitMock): git_cl.main(['upload', '--send-mail']) - self.assertEqual( - 'Using 50% similarity for rename/copy detection. Override with ' - '--similarity.\n', - stdout.getvalue()) + self.assertEqual('', stdout.getvalue()) def test_bug_on_cmd(self): self._run_reviewer_test(