Refactor WhatChanged into base class, use LazySoruceMapper

Review Request #1534 — Created Dec. 20, 2014 and submitted — Latest diff uploaded

davidt
pants
884
1535
80ab6c1...
pants-reviews
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.

https://travis-ci.org/pantsbuild/pants/builds/44683965

./pants goal test tests/python/pants_test/tasks:what_changed

Loading...