Show More
@@ -577,7 +577,7 b' class MercurialRepository(BaseRepository' | |||||
577 | push_branches=push_branches) |
|
577 | push_branches=push_branches) | |
578 |
|
578 | |||
579 | def _local_merge(self, target_ref, merge_message, user_name, user_email, |
|
579 | def _local_merge(self, target_ref, merge_message, user_name, user_email, | |
580 | source_ref): |
|
580 | source_ref, use_rebase=False): | |
581 | """ |
|
581 | """ | |
582 | Merge the given source_revision into the checked out revision. |
|
582 | Merge the given source_revision into the checked out revision. | |
583 |
|
583 | |||
@@ -597,7 +597,7 b' class MercurialRepository(BaseRepository' | |||||
597 | # In this case we should force a commit message |
|
597 | # In this case we should force a commit message | |
598 | return source_ref.commit_id, True |
|
598 | return source_ref.commit_id, True | |
599 |
|
599 | |||
600 | if settings.HG_USE_REBASE_FOR_MERGING: |
|
600 | if use_rebase: | |
601 | try: |
|
601 | try: | |
602 | bookmark_name = 'rcbook%s%s' % (source_ref.commit_id, |
|
602 | bookmark_name = 'rcbook%s%s' % (source_ref.commit_id, | |
603 | target_ref.commit_id) |
|
603 | target_ref.commit_id) | |
@@ -691,7 +691,7 b' class MercurialRepository(BaseRepository' | |||||
691 | try: |
|
691 | try: | |
692 | merge_commit_id, needs_push = shadow_repo._local_merge( |
|
692 | merge_commit_id, needs_push = shadow_repo._local_merge( | |
693 | target_ref, merge_message, merger_name, merger_email, |
|
693 | target_ref, merge_message, merger_name, merger_email, | |
694 | source_ref) |
|
694 | source_ref, use_rebase=use_rebase) | |
695 | merge_possible = True |
|
695 | merge_possible = True | |
696 | except RepositoryError as e: |
|
696 | except RepositoryError as e: | |
697 | log.exception('Failure when doing local merge on hg shadow repo') |
|
697 | log.exception('Failure when doing local merge on hg shadow repo') |
General Comments 0
You need to be logged in to leave comments.
Login now