Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2238)

Unified Diff: delta_diff_generator.cc

Issue 3013030: AU: when cutting a cycle, add proper dependencies. (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | delta_diff_generator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_diff_generator.cc
diff --git a/delta_diff_generator.cc b/delta_diff_generator.cc
index ec071193cecc67a7112d616241e3739650c356fa..657bdf50410f2c348cb6034ae9fa02469f0bb087 100644
--- a/delta_diff_generator.cc
+++ b/delta_diff_generator.cc
@@ -652,6 +652,10 @@ bool DeltaDiffGenerator::CutEdges(Graph* graph,
// delete the old edge
CHECK_EQ(1, (*graph)[it->first].out_edges.erase(it->second));
+
+ // Add an edge from dst to copy operation
+ (*graph)[it->second].out_edges.insert(make_pair(graph->size() - 1,
+ EdgeProperties()));
}
return true;
}
« no previous file with comments | « no previous file | delta_diff_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698