##// END OF EJS Templates
move the existing changeset checks bellow other checks else it can throw exceptions for non...
marcink -
r3615:50927aed beta
parent child Browse files
Show More
@@ -115,9 +115,6 b' class CompareController(BaseRepoControll'
115 org_repo = Repository.get_by_repo_name(org_repo)
115 org_repo = Repository.get_by_repo_name(org_repo)
116 other_repo = Repository.get_by_repo_name(other_repo)
116 other_repo = Repository.get_by_repo_name(other_repo)
117
117
118 self.__get_cs_or_redirect(rev=org_ref, repo=org_repo, partial=partial)
119 self.__get_cs_or_redirect(rev=other_ref, repo=other_repo, partial=partial)
120
121 if org_repo is None:
118 if org_repo is None:
122 log.error('Could not find org repo %s' % org_repo)
119 log.error('Could not find org repo %s' % org_repo)
123 raise HTTPNotFound
120 raise HTTPNotFound
@@ -133,6 +130,9 b' class CompareController(BaseRepoControll'
133 log.error('compare of two different kind of remote repos not available')
130 log.error('compare of two different kind of remote repos not available')
134 raise HTTPNotFound
131 raise HTTPNotFound
135
132
133 self.__get_cs_or_redirect(rev=org_ref, repo=org_repo, partial=partial)
134 self.__get_cs_or_redirect(rev=other_ref, repo=other_repo, partial=partial)
135
136 c.org_repo = org_repo
136 c.org_repo = org_repo
137 c.other_repo = other_repo
137 c.other_repo = other_repo
138 c.org_ref = org_ref[1]
138 c.org_ref = org_ref[1]
General Comments 0
You need to be logged in to leave comments. Login now