Bug 1359942: rename optimization to skip-unless-changed; r=glandium
MozReview-Commit-ID: 4d4zoDDJYnz
This commit is contained in:
@@ -233,7 +233,7 @@ def opt_seta(task, params):
|
||||
return False
|
||||
|
||||
|
||||
@optimization('files-changed')
|
||||
@optimization('skip-unless-changed')
|
||||
def opt_files_changed(task, params, file_patterns):
|
||||
# pushlog_id == -1 - this is the case when run from a cron.yml job
|
||||
if params.get('pushlog_id') == -1:
|
||||
@@ -241,7 +241,7 @@ def opt_files_changed(task, params, file_patterns):
|
||||
|
||||
changed = files_changed.check(params, file_patterns)
|
||||
if not changed:
|
||||
logger.debug('no files found matching a pattern in `when.files-changed` for ' +
|
||||
logger.debug('no files found matching a pattern in `skip-unless-changed` for ' +
|
||||
task.label)
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user