diff options
author | pbos@webrtc.org <pbos@webrtc.org> | 2014-11-04 16:06:35 +0000 |
---|---|---|
committer | pbos@webrtc.org <pbos@webrtc.org> | 2014-11-04 16:06:35 +0000 |
commit | 19c8d5c35a3e7a7341124f3865a3a117985e7c08 (patch) | |
tree | 426c61ded5c82b636ab13c887584ccbde01b5910 | |
parent | e540565f11e4edc9a7f9ee9fea047680e6c10401 (diff) | |
download | talk-19c8d5c35a3e7a7341124f3865a3a117985e7c08.tar.gz |
Remove protected files from talk/PRESUBMIT.py.
All files may now be committed to.
R=pthatcher@webrtc.org
BUG=
Review URL: https://webrtc-codereview.appspot.com/23359004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/talk@7616 4adac7df-926f-26a2-2b94-8c16560cd09d
-rw-r--r-- | PRESUBMIT.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index a7b4851..9e7b5da 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -23,9 +23,6 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# List of files that should not be committed to -DO_NOT_SUBMIT_FILES = ["talk/media/webrtc/webrtcvideoengine.cc"] - def _LicenseHeader(input_api): """Returns the license header regexp.""" # Accept any year number from start of project to the current year @@ -79,26 +76,11 @@ def _LicenseHeader(input_api): } return license_header -def _ProtectedFiles(input_api, output_api): - results = [] - changed_files = [] - for f in input_api.AffectedFiles(): - changed_files.append(f.LocalPath()) - bad_files = list(set(DO_NOT_SUBMIT_FILES) & set(changed_files)) - if bad_files: - error_type = output_api.PresubmitError - results.append(error_type( - 'The following affected files are only allowed to be updated when ' - 'importing libjingle', - bad_files)) - return results - def _CommonChecks(input_api, output_api): """Checks common to both upload and commit.""" results = [] results.extend(input_api.canned_checks.CheckLicense( input_api, output_api, _LicenseHeader(input_api))) - results.extend(_ProtectedFiles(input_api, output_api)) return results def CheckChangeOnUpload(input_api, output_api): |