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

Unified Diff: gclient_scm.py

Issue 1162153004: Add env variable to suppress the notice about deprecated SVN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Fix spelling Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index 55a73f4f82013271f140c87a0a381691d5801a26..cf19e350d9627c98f20f03c875509ce8c1e65c0c 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -1169,16 +1169,13 @@ class SVNWrapper(SCMWrapper):
'svn support so please switch to git.',
'Tracking bug: http://crbug.com/475320',
'Request a new git repository at: ',
- ' https://code.google.com/p/chromium/issues/entry?template=Infra-Git',
- '',
- 'If subversion support is needed, pin your depot_tools to ',
- 'c20f470011e2ea4d81527976f3bded2c13e258af and set the env var',
- 'DEPOT_TOOLS_UPDATE=0',
- 'Thank you for your business!')
+ ' https://code.google.com/p/chromium/issues/entry?template=Infra-Git')
def __init__(self, *args, **kwargs):
super(SVNWrapper, self).__init__(*args, **kwargs)
- if not SVNWrapper._PRINTED_DEPRECATION:
+ suppress_deprecated_notice = os.environ.get(
+ 'SUPPRESS_DEPRECATED_SVN_NOTICE', False)
+ if not SVNWrapper._PRINTED_DEPRECATION and not suppress_deprecated_notice:
SVNWrapper._PRINTED_DEPRECATION = True
sys.stderr.write('\n'.join(self._MESSAGE) + '\n')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698