##// 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 115 org_repo = Repository.get_by_repo_name(org_repo)
116 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 118 if org_repo is None:
122 119 log.error('Could not find org repo %s' % org_repo)
123 120 raise HTTPNotFound
@@ -133,6 +130,9 b' class CompareController(BaseRepoControll'
133 130 log.error('compare of two different kind of remote repos not available')
134 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 136 c.org_repo = org_repo
137 137 c.other_repo = other_repo
138 138 c.org_ref = org_ref[1]
General Comments 0
You need to be logged in to leave comments. Login now