AU: fix delta generation when running out of scratch.
When running out of scratch, deltas were incorrectly generated. The
issue is that cuts used to be processed in arbitrary order, so
sometimes a cut would be processed (thus having temp blocks
allocated), and later another cut would be impossible to process, and
then the node in question would be converted to a REPLACE
operation. That's fine, but we weren't deleting the graph nodes that
moved data aside. Thus, we would generate a delta w/ extra ops that
were moving data around(!!).
This change causes us to prcocess all cuts for a node together, so
they all succeed or fail.
BUG=8063
TEST=unittests, generated/applied delta locally
Review URL: http://codereview.chromium.org/3997007
Change-Id: I5a9a1b962659bdeec7fb60baced02d5dcb9c2496
3 files changed