Commit 6bf2b45c authored by ilevy@chromium.org's avatar ilevy@chromium.org

Remove committed check from depot_tools presubmit

BUG=161702

R=maruel@chromium.org


Review URL: https://chromiumcodereview.appspot.com/11438024

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@171277 0039d316-1c4b-4281-b951-d872f2087c98
parent c50d761b
......@@ -67,17 +67,6 @@ def CheckChangeHasDescription(input_api, output_api):
return []
def CheckChangeDescriptionNotCommitted(input_api, output_api):
"""Checks that the CL does not end with a Committed link."""
description = input_api.change.DescriptionText()
if input_api.re.search('\nCommitted: \S+\s*$', description):
return [output_api.PresubmitError(
'The CL description appears to end with a committed link. If this issue\n'
'has been previously used for a commit, please make a new issue number\n'
'by typing "git cl issue 0" and reuploading your CL.')]
return []
def CheckChangeWasUploaded(input_api, output_api):
"""Checks that the issue was uploaded before committing."""
if input_api.is_committing and not input_api.change.issue:
......@@ -819,9 +808,8 @@ def CheckIssueNotClosed(input_api, output_api):
issue_props = _GetRietveldIssueProps(input_api=input_api, messages=False)
if issue_props and issue_props['closed']:
return [output_api.PresubmitError(
'Issue %s is closed. If this issue was already used for a commit,\n'
'please reset the issue number associated with this branch with:\n'
'git cl issue 0\n' % issue_props['issue']
'Issue %s is closed. You can reset the issue number associated with\n'
'this branch with: git cl issue 0\n' % issue_props['issue']
)]
return []
......@@ -1014,8 +1002,6 @@ def PanProjectChecks(input_api, output_api,
input_api, output_api))
results.extend(input_api.canned_checks.CheckDoNotSubmitInDescription(
input_api, output_api))
results.extend(input_api.canned_checks.CheckChangeDescriptionNotCommitted(
input_api, output_api))
snapshot("checking do not submit in files")
results.extend(input_api.canned_checks.CheckDoNotSubmitInFiles(
input_api, output_api))
......
......@@ -1504,7 +1504,6 @@ class CannedChecksUnittest(PresubmitTestsBase):
'CheckChangeWasUploaded',
'CheckDoNotSubmit',
'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles',
'CheckChangeDescriptionNotCommitted',
'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks',
'CheckLicense',
'CheckOwners',
......
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