Show More
@@ -607,6 +607,10 b' class MercurialRepository(BaseRepository' | |||||
607 | self._update(bookmark_name) |
|
607 | self._update(bookmark_name) | |
608 | return self._identify(), True |
|
608 | return self._identify(), True | |
609 | except RepositoryError: |
|
609 | except RepositoryError: | |
|
610 | # The rebase-abort may raise another exception which 'hides' | |||
|
611 | # the original one, therefore we log it here. | |||
|
612 | log.exception('Error while rebasing shadow repo during merge.') | |||
|
613 | ||||
610 | # Cleanup any rebase leftovers |
|
614 | # Cleanup any rebase leftovers | |
611 | self._remote.rebase(abort=True) |
|
615 | self._remote.rebase(abort=True) | |
612 | self._remote.update(clean=True) |
|
616 | self._remote.update(clean=True) | |
@@ -715,8 +719,8 b' class MercurialRepository(BaseRepository' | |||||
715 | merge_succeeded = True |
|
719 | merge_succeeded = True | |
716 | except RepositoryError: |
|
720 | except RepositoryError: | |
717 | log.exception( |
|
721 | log.exception( | |
718 |
'Failure when doing local from the shadow |
|
722 | 'Failure when doing local push from the shadow ' | |
719 | 'to the target repository.') |
|
723 | 'repository to the target repository.') | |
720 | merge_succeeded = False |
|
724 | merge_succeeded = False | |
721 | merge_failure_reason = MergeFailureReason.PUSH_FAILED |
|
725 | merge_failure_reason = MergeFailureReason.PUSH_FAILED | |
722 | else: |
|
726 | else: |
@@ -2794,7 +2794,9 b' class CacheKey(Base, BaseModel):' | |||||
2794 |
|
2794 | |||
2795 | Session().commit() |
|
2795 | Session().commit() | |
2796 | except Exception: |
|
2796 | except Exception: | |
2797 | log.error(traceback.format_exc()) |
|
2797 | log.exception( | |
|
2798 | 'Cache key invalidation failed for repository %s', | |||
|
2799 | safe_str(repo_name)) | |||
2798 | Session().rollback() |
|
2800 | Session().rollback() | |
2799 |
|
2801 | |||
2800 | @classmethod |
|
2802 | @classmethod |
General Comments 0
You need to be logged in to leave comments.
Login now