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

Unified Diff: presubmit_support.py

Issue 119421: Add CheckChangeSvnEolStyle presubmit canned check. (Closed)
Patch Set: version Created 11 years, 6 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 | « presubmit_canned_checks.py ('k') | tests/presubmit_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: presubmit_support.py
diff --git a/presubmit_support.py b/presubmit_support.py
index ccbca74052398e92d18aa41795cafdcf84ced66b..919230dbdc0627ad8bb977eecddd98aad889e4e3 100755
--- a/presubmit_support.py
+++ b/presubmit_support.py
@@ -6,7 +6,7 @@
"""Enables directory-specific presubmit checks to run at upload and/or commit.
"""
-__version__ = '1.3.1'
+__version__ = '1.3.2'
# TODO(joi) Add caching where appropriate/needed. The API is designed to allow
# caching (between all different invocations of presubmit scripts for a given
@@ -360,6 +360,7 @@ class AffectedFile(object):
self._repository_root = repository_root
self._is_directory = None
self._properties = {}
+ self.scm = ''
def ServerPath(self):
"""Returns a path string that identifies the file in the SCM system.
@@ -442,6 +443,7 @@ class SvnAffectedFile(AffectedFile):
AffectedFile.__init__(self, *args, **kwargs)
self._server_path = None
self._is_text_file = None
+ self.scm = 'svn'
def ServerPath(self):
if self._server_path is None:
« no previous file with comments | « presubmit_canned_checks.py ('k') | tests/presubmit_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698