Speed up cvs2svn by storing the metadata (author and log) in a DB in pass1, and using that DB in pass4 instead of parsing a whole RCS file for each commit.
Speed up cvs2svn by storing the metadata (author and log) in a DB in
pass1, and using that DB in pass4 instead of parsing a whole RCS file
for each commit.

* tools/cvs2svn/cvs2svn.py:

  (METADATA_DB): New global variable.

  (CollectData.__init__): Create the metadata DB.

  (CollectData.set_revision_info): Store the author and log in the DB.

  (Commit.__init__): Add author and log as constructor arguments.

  (Commit.get_metadata): Remove.

  (Commit.commit): Remove call to self.get_metadata.

  (pass4): Open the metadata DB. Load the metadata for a commit when
  creating the new Commit item.

  (pass5): Remove the metadata DB.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@848716 13f79535-47bb-0310-9956-ffa450edef68

wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion