Show More
@@ -44,7 +44,7 b' from rhodecode.lib.vcs.backends.hg.diff ' | |||
|
44 | 44 | from rhodecode.lib.vcs.backends.hg.inmemory import MercurialInMemoryCommit |
|
45 | 45 | from rhodecode.lib.vcs.exceptions import ( |
|
46 | 46 | EmptyRepositoryError, RepositoryError, TagAlreadyExistError, |
|
47 | TagDoesNotExistError, CommitDoesNotExistError) | |
|
47 | TagDoesNotExistError, CommitDoesNotExistError, SubrepoMergeError) | |
|
48 | 48 | |
|
49 | 49 | hexlify = binascii.hexlify |
|
50 | 50 | nullid = "\0" * 20 |
@@ -712,6 +712,11 b' class MercurialRepository(BaseRepository' | |||
|
712 | 712 | # shadow repository. |
|
713 | 713 | shadow_repo.bookmark('pr-merge', revision=merge_commit_id) |
|
714 | 714 | merge_ref = Reference('book', 'pr-merge', merge_commit_id) |
|
715 | except SubrepoMergeError: | |
|
716 | log.exception( | |
|
717 | 'Subrepo merge error during local merge on hg shadow repo.') | |
|
718 | merge_possible = False | |
|
719 | merge_failure_reason = MergeFailureReason.SUBREPO_MERGE_FAILED | |
|
715 | 720 | except RepositoryError: |
|
716 | 721 | log.exception('Failure when doing local merge on hg shadow repo') |
|
717 | 722 | merge_possible = False |
General Comments 0
You need to be logged in to leave comments.
Login now