Refactor WhatChanged into base class, use LazySoruceMapper
Review Request #1534 — Created Dec. 20, 2014 and submitted — Latest diff uploaded
|benjyw, dturner-tw, jsirois, patricklaw|
Switch to using LazySourceMapper to map changed files to targets.
LazySourceMapper is designed to map sources to targets without
loading any more of the BUILD graph than is required, which is
ideal for a what-changed use-case.
Refactoring the what-changed calculation into base class should make
it easier to support other tasks that require the set of changed
targets (or files). The WhatChanged task itself is now just a small
stub on top of it.
./pants goal test tests/python/pants_test/tasks:what_changed