Send an IM when gcl commit <change> --no_presubmit is used

R=cmp@chromium.org
BUG=25940
TEST=


Review URL: http://codereview.chromium.org/9211013

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@117851 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 13 years ago
parent ac63715662
commit 080f37c152

@ -1,5 +1,5 @@
#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@ -755,6 +755,10 @@ def GenerateDiff(files):
def OptionallyDoPresubmitChecks(change_info, committing, args):
if FilterFlag(args, "--no_presubmit") or FilterFlag(args, "--force"):
breakpad.SendStack(
'GclHooksBypassedCommit',
'Issue %s/%s bypassed hook when committing' %
(change_info.rietveld, change_info.issue))
return presubmit_support.PresubmitOutput()
return DoPresubmitChecks(change_info, committing, True)

Loading…
Cancel
Save