mark rebaseline.py as deprecated
(SkipBuildbotRuns)
NOTREECHECKS=True
NOTRY=True
R=senorblanco@google.com
Author: epoger@google.com
Review URL: https://codereview.chromium.org/262703003
git-svn-id: http://skia.googlecode.com/svn/trunk@14530 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/rebaseline.py b/tools/rebaseline.py
index 294a368..9870b90 100755
--- a/tools/rebaseline.py
+++ b/tools/rebaseline.py
@@ -396,6 +396,10 @@
'"--configs 565 8888", as a filter over the full set '
'of results in ACTUALS_FILENAME; if unspecified, '
'rebaseline *all* configs that are available.'))
+parser.add_argument('--deprecated', action='store_true',
+ help=('run the tool even though it has been deprecated; '
+ 'see http://tinyurl.com/SkiaRebaselineServer for '
+ 'the recommended/supported process'))
parser.add_argument('--expectations-filename',
help=('filename (under EXPECTATIONS_ROOT) to read '
'current expectations from, and to write new '
@@ -446,6 +450,11 @@
'and ACTUALS_BASE_URL and EXPECTATIONS_ROOT are set '
'to alternate defaults, specific to skimage.'))
args = parser.parse_args()
+if not args.deprecated:
+ raise Exception(
+ 'This tool has been deprecated; see'
+ ' http://tinyurl.com/SkiaRebaselineServer for the recommended/supported'
+ ' process, or re-run with the --deprecated option to press on.')
exception_handler = ExceptionHandler(
keep_going_on_failure=args.keep_going_on_failure)
if args.builders: