mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
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:
parent
03b6607779
commit
8e61b4445d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user