Show More
@@ -50,6 +50,7 b' from rhodecode.model.repo import RepoMod' | |||||
50 | from rhodecode.model.comment import ChangesetCommentsModel |
|
50 | from rhodecode.model.comment import ChangesetCommentsModel | |
51 | from rhodecode.model.changeset_status import ChangesetStatusModel |
|
51 | from rhodecode.model.changeset_status import ChangesetStatusModel | |
52 | from rhodecode.model.forms import PullRequestForm |
|
52 | from rhodecode.model.forms import PullRequestForm | |
|
53 | from rhodecode.lib.vcs.exceptions import EmptyRepositoryError | |||
53 |
|
54 | |||
54 | log = logging.getLogger(__name__) |
|
55 | log = logging.getLogger(__name__) | |
55 |
|
56 | |||
@@ -107,6 +108,13 b' class PullrequestsController(BaseRepoCon' | |||||
107 | log.error('Review not available for GIT REPOS') |
|
108 | log.error('Review not available for GIT REPOS') | |
108 | raise HTTPNotFound |
|
109 | raise HTTPNotFound | |
109 |
|
110 | |||
|
111 | try: | |||
|
112 | org_repo.scm_instance.get_changeset() | |||
|
113 | except EmptyRepositoryError, e: | |||
|
114 | h.flash(h.literal(_('There are no changesets yet')), | |||
|
115 | category='warning') | |||
|
116 | redirect(url('summary_home', repo_name=org_repo.repo_name)) | |||
|
117 | ||||
110 | other_repos_info = {} |
|
118 | other_repos_info = {} | |
111 |
|
119 | |||
112 | c.org_refs = self._get_repo_refs(c.rhodecode_repo) |
|
120 | c.org_refs = self._get_repo_refs(c.rhodecode_repo) |
General Comments 0
You need to be logged in to leave comments.
Login now