# # # patch "rcs_import.cc" # from [2c3a2f2133417e92823956d72bddeabc19aa7043] # to [46f0070053f2dc4ff860ac7a30bfab591fbb3778] # ============================================================ --- rcs_import.cc 2c3a2f2133417e92823956d72bddeabc19aa7043 +++ rcs_import.cc 46f0070053f2dc4ff860ac7a30bfab591fbb3778 @@ -159,7 +159,7 @@ public: public: time_t time; cvs_path path; - set< cvs_event_ptr > dependencies; + vector< cvs_event_ptr > dependencies; cvs_event(const cvs_path p, const time_t ti) : time(ti), @@ -170,7 +170,7 @@ public: : time(dep->time), path(dep->path) { - dependencies.insert(dep); + dependencies.push_back(dep); }; virtual ~cvs_event() { }; @@ -248,7 +248,7 @@ typedef vector< cvs_event_ptr >::const_i }; typedef vector< cvs_event_ptr >::const_iterator blob_event_iter; -typedef set< cvs_event_ptr >::const_iterator dependency_iter; +typedef vector< cvs_event_ptr >::const_iterator dependency_iter; class cvs_blob @@ -744,7 +744,7 @@ process_branch(string const & begin_vers // make the last commit depend on the current one (which // comes _before_ in the CVS history). if (last_commit != NULL) - last_commit->dependencies.insert(curr_commit); + last_commit->dependencies.push_back(curr_commit); } // create tag events for all tags on this commit @@ -767,8 +767,8 @@ process_branch(string const & begin_vers cvs.stk.top()->append_event(event); // append to the last_commit deps - if (last_commit) - last_commit->dependencies.insert(event); + if (last_commit != NULL) + last_commit->dependencies.push_back(event); } } } @@ -815,7 +815,7 @@ process_branch(string const & begin_vers process_branch(*i, branch_lines, branch_data, branch_id, r, db, cvs); - shared_ptr sub_branch = cvs.stk.top(); + shared_ptr sub_branch(cvs.stk.top()); cvs.pop_branch(); L(FL("finished RCS branch %s = '%s'") % (*i) % branch); @@ -841,8 +841,8 @@ process_branch(string const & begin_vers % branch); // append to the last_commit deps - if (last_commit) - last_commit->dependencies.insert(branch_event); + if (last_commit != NULL) + last_commit->dependencies.push_back(branch_event); } } @@ -1245,6 +1245,7 @@ add_blob_dependency_edges(shared_ptrget_blob((*dep)->get_digest(), false); L(FL("blob %d depends on blob %d") % i % k->second);