Repo converter: Remove "[MERGED]" prefix from commit messages

Summary: When I was first prototyping the converter, I used a prefix to make it clear which commits represented merged commit history. This commit removes that prefix so the commit messages are an exact match.

Reviewed By: tchebb

Differential Revision: D19404075

fbshipit-source-id: 73b4aab39b30ce1dcff917e40d459f9615896fca
This commit is contained in:
Michael Devine 2020-01-15 15:59:25 -08:00 committed by Facebook Github Bot
parent 03b6607779
commit 8e61b4445d

View File

@ -734,8 +734,6 @@ class repo_source(common.converter_source):
FILECACHE_SIZE_MAX = 1000
DIFFCACHE_SIZE_MAX = 1000
FORMAT_UNIFIED_COMMIT_MESSAGE = "[MERGED] %s"
def __init__(self, ui, repotype, path, revs=None):
"""
raises common.NoRepo if the directory doesn't exist or isn't a Google repo
@ -964,7 +962,6 @@ class repo_source(common.converter_source):
if variant == self.VARIANT_UNIFIED:
previoushash = self.repo.unifiedprevioushashes[commit.rev]
# self.ui.note('Previous hash for %s is %s\n' % (commit.rev, previous_hash))
commit.desc = self.FORMAT_UNIFIED_COMMIT_MESSAGE % commit.desc
if previoushash == nodemod.nullhex:
commit.parents = []
else: