From fd177d0151f00b028b4a0df21e0c8b7096f4246b Mon Sep 17 00:00:00 2001 From: mhagger Date: Thu, 9 Nov 2017 14:20:22 +0000 Subject: [PATCH] Don't add so much useless metadata to symbol commits 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 | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/cvs2svn_lib/git_output_option.py b/cvs2svn_lib/git_output_option.py index bc8a684d..f54c0a60 100644 --- a/cvs2svn_lib/git_output_option.py +++ b/cvs2svn_lib/git_output_option.py @@ -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,)) -- 2.11.4.GIT