Bug 1359942: rename optimization to skip-unless-changed; r=glandium

MozReview-Commit-ID: 4d4zoDDJYnz
This commit is contained in:
Dustin J. Mitchell
2017-05-23 10:22:53 -04:00
parent 5937d1a9bb
commit b04b5ac742
5 changed files with 11 additions and 10 deletions

View File

@@ -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