Show More
@@ -40,7 +40,6 b' from rhodecode.lib.vcs.backends.base imp' | |||
|
40 | 40 | from rhodecode.lib.vcs.backends.git.commit import GitCommit |
|
41 | 41 | from rhodecode.lib.vcs.backends.git.diff import GitDiff |
|
42 | 42 | from rhodecode.lib.vcs.backends.git.inmemory import GitInMemoryCommit |
|
43 | from rhodecode.lib.vcs.conf import settings | |
|
44 | 43 | from rhodecode.lib.vcs.exceptions import ( |
|
45 | 44 | CommitDoesNotExistError, EmptyRepositoryError, |
|
46 | 45 | RepositoryError, TagAlreadyExistError, TagDoesNotExistError, VCSError) |
@@ -865,7 +864,7 b' class GitRepository(BaseRepository):' | |||
|
865 | 864 | shadow_repo._checkout(pr_branch, create=True) |
|
866 | 865 | try: |
|
867 | 866 | shadow_repo._local_fetch(source_repo.path, source_ref.name) |
|
868 |
except RepositoryError |
|
|
867 | except RepositoryError: | |
|
869 | 868 | log.exception('Failure when doing local fetch on git shadow repo') |
|
870 | 869 | return MergeResponse( |
|
871 | 870 | False, False, None, MergeFailureReason.MISSING_COMMIT) |
@@ -886,7 +885,7 b' class GitRepository(BaseRepository):' | |||
|
886 | 885 | # be used to easily identify the last successful merge commit in |
|
887 | 886 | # the shadow repository. |
|
888 | 887 | shadow_repo.set_refs('refs/heads/pr-merge', merge_commit_id) |
|
889 |
except RepositoryError |
|
|
888 | except RepositoryError: | |
|
890 | 889 | log.exception('Failure when doing local merge on git shadow repo') |
|
891 | 890 | merge_possible = False |
|
892 | 891 | merge_failure_reason = MergeFailureReason.MERGE_FAILED |
@@ -897,7 +896,7 b' class GitRepository(BaseRepository):' | |||
|
897 | 896 | pr_branch, self.path, target_ref.name, enable_hooks=True, |
|
898 | 897 | rc_scm_data=self.config.get('rhodecode', 'RC_SCM_DATA')) |
|
899 | 898 | merge_succeeded = True |
|
900 |
except RepositoryError |
|
|
899 | except RepositoryError: | |
|
901 | 900 | log.exception( |
|
902 | 901 | 'Failure when doing local push on git shadow repo') |
|
903 | 902 | merge_succeeded = False |
@@ -688,7 +688,7 b' class MercurialRepository(BaseRepository' | |||
|
688 | 688 | log.debug('Pulling in source reference %s', source_ref) |
|
689 | 689 | source_repo._validate_pull_reference(source_ref) |
|
690 | 690 | shadow_repo._local_pull(source_repo.path, source_ref) |
|
691 |
except CommitDoesNotExistError |
|
|
691 | except CommitDoesNotExistError: | |
|
692 | 692 | log.exception('Failure when doing local pull on hg shadow repo') |
|
693 | 693 | return MergeResponse( |
|
694 | 694 | False, False, None, MergeFailureReason.MISSING_COMMIT) |
@@ -706,7 +706,7 b' class MercurialRepository(BaseRepository' | |||
|
706 | 706 | # used to easily identify the last successful merge commit in the |
|
707 | 707 | # shadow repository. |
|
708 | 708 | shadow_repo.bookmark('pr-merge', revision=merge_commit_id) |
|
709 |
except RepositoryError |
|
|
709 | except RepositoryError: | |
|
710 | 710 | log.exception('Failure when doing local merge on hg shadow repo') |
|
711 | 711 | merge_possible = False |
|
712 | 712 | merge_failure_reason = MergeFailureReason.MERGE_FAILED |
General Comments 0
You need to be logged in to leave comments.
Login now