# # patch "ChangeLog" # from [3b84e3897943b6c7c29701343f1da2e52d4ff9b7] # to [3efd95e1cf7c7253de0a630b5df408f55c968495] # # patch "revision.cc" # from [6909bf9dd29f340f7d10b8c2f9f217082b52e160] # to [a8dee743a7af7356d2a83a121c3210e8047fa797] # ======================================================================== --- ChangeLog 3b84e3897943b6c7c29701343f1da2e52d4ff9b7 +++ ChangeLog 3efd95e1cf7c7253de0a630b5df408f55c968495 @@ -1,5 +1,9 @@ 2005-10-08 Nathaniel Smith + * revision.cc (analyze_manifest_changes): Remove. + +2005-10-08 Nathaniel Smith + * revision.cc (calculate_change_sets_recursive): (find_subgraph_for_composite_search) (calculate_composite_change_set, calculate_arbitrary_change_set): ======================================================================== --- revision.cc 6909bf9dd29f340f7d10b8c2f9f217082b52e160 +++ revision.cc a8dee743a7af7356d2a83a121c3210e8047fa797 @@ -711,57 +711,6 @@ // Stuff related to rebuilding the revision graph. Unfortunately this is a // real enough error case that we need support code for it. -/* -static void -analyze_manifest_changes(app_state & app, - manifest_id const & parent, - manifest_id const & child, - std::set const & need_history_splitting, - cset & cs) -{ - manifest_map m_parent, m_child; - - if (!null_id(parent)) - app.db.get_manifest(parent, m_parent); - - I(!null_id(child)); - app.db.get_manifest(child, m_child); - - L(F("analyzing manifest changes from '%s' -> '%s'\n") % parent % child); - - for (manifest_map::const_iterator i = m_parent.begin(); - i != m_parent.end(); ++i) - { - file_path f = manifest_entry_path(i); - manifest_map::const_iterator j = m_child.find(f); - if (j == m_child.end()) - { - cs.delete_file(f); - } - else if (need_history_splitting.find(f) != need_history_splitting.end()) - { - P(F("splitting ancestry for file %s\n") % f); - cs.delete_file(f); - cs.add_file(f, manifest_entry_id(j)); - } - else if (! (manifest_entry_id(i) == manifest_entry_id(j))) - { - cs.apply_delta(manifest_entry_path(i), - manifest_entry_id(i), - manifest_entry_id(j)); - } - } - for (manifest_map::const_iterator i = m_child.begin(); - i != m_child.end(); ++i) - { - manifest_map::const_iterator j = m_parent.find(manifest_entry_path(i)); - if (j == m_parent.end()) - cs.add_file(manifest_entry_path(i), - manifest_entry_id(i)); - } -} -*/ - struct anc_graph { anc_graph(bool existing, app_state & a) :