Don't add so much useless metadata to symbol commits
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Thu, 9 Nov 2017 14:20:22 +0000 (9 14:20 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Thu, 9 Nov 2017 14:20:22 +0000 (9 14:20 +0000)
This information is mostly redundant with the history itself. Plus, it
can amount to a unwieldy amount of data, for example if a single file
is tagged in a huge repository.

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5469 be7e6eca-30d4-0310-a8e5-ac0d63af7087

cvs2svn_lib/git_output_option.py

index bc8a684..f54c0a6 100644 (file)
@@ -409,36 +409,6 @@ class GitOutputOption(DVCSOutputOption):
         for cvs_symbol in cvs_symbols:
           cvs_files_to_delete.discard(cvs_symbol.cvs_file)
 
-    # Write a trailer to the log message which describes the cherrypicks that
-    # make up this symbol creation.
-    log_msg += "\n"
-    if is_initial_lod_creation:
-      log_msg += "\nSprout from %s" % (
-          self._describe_commit(
-              Ctx()._persistence_manager.get_svn_commit(p_source_revnum),
-              p_source_lod
-              ),
-          )
-    for (source_revnum, source_lod, cvs_symbols,) \
-            in source_groups[(is_initial_lod_creation and 1 or 0):]:
-      log_msg += "\nCherrypick from %s:" % (
-          self._describe_commit(
-              Ctx()._persistence_manager.get_svn_commit(source_revnum),
-              source_lod
-              ),
-          )
-      for cvs_path in sorted(
-            cvs_symbol.cvs_file.cvs_path for cvs_symbol in cvs_symbols
-            ):
-        log_msg += "\n    %s" % (cvs_path,)
-    if is_initial_lod_creation:
-      if cvs_files_to_delete:
-        log_msg += "\nDelete:"
-        for cvs_path in sorted(
-              cvs_file.cvs_path for cvs_file in cvs_files_to_delete
-              ):
-          log_msg += "\n    %s" % (cvs_path,)
-
     self.f.write('commit %s\n' % (git_branch,))
     self.f.write('mark :%d\n' % (mark,))
     self.f.write('committer %s %d +0000\n' % (author, svn_commit.date,))