Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: commit-queue/verification/authors_white_list.py

Issue 135363007: Delete public commit queue to avoid confusion after move to internal repo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « commit-queue/tools/watch.py ('k') | commit-queue/verification/base.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: commit-queue/verification/authors_white_list.py
===================================================================
--- commit-queue/verification/authors_white_list.py (revision 249146)
+++ commit-queue/verification/authors_white_list.py (working copy)
@@ -1,30 +0,0 @@
-# coding=utf8
-# Copyright (c) 2011 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.
-"""Ignores issues not passing a authors regex."""
-
-import re
-
-from verification import base
-
-
-class AuthorVerifier(base.Verifier):
- """Needs the author to match at least one regexp in self.regex."""
- name = 'author_white_list'
-
- def __init__(self, author_white_list):
- super(AuthorVerifier, self).__init__()
- self.author_white_list = author_white_list
-
- def verify(self, pending):
- if not any(re.match(r, pending.owner) for r in self.author_white_list):
- pending.verifications[self.name] = base.SimpleStatus(
- state=base.FAILED,
- error_message='Can\'t commit because the owner %s not in whitelist' %
- pending.owner)
- else:
- pending.verifications[self.name] = base.SimpleStatus(base.SUCCEEDED)
-
- def update_status(self, queue):
- pass
« no previous file with comments | « commit-queue/tools/watch.py ('k') | commit-queue/verification/base.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698