##// END OF EJS Templates
pullrequests: handle the case where no matching revisions are found for either end...
Mads Kiilerich -
r3723:3761a66b beta
parent child Browse files
Show More
@@ -185,13 +185,13 b' class PullRequestModel(BaseModel):'
185 185
186 186 org_rev_spec = "%s('%s')" % (_revset_predicates[org_ref[0]],
187 187 safe_str(org_ref[1]))
188 org_rev = org_repo._repo[scmutil.revrange(org_repo._repo,
189 [org_rev_spec])[-1]]
188 org_revs = scmutil.revrange(org_repo._repo, [org_rev_spec])
189 org_rev = org_repo._repo[org_revs[-1] if org_revs else -1]
190 190
191 191 other_rev_spec = "%s('%s')" % (_revset_predicates[other_ref[0]],
192 192 safe_str(other_ref[1]))
193 other_rev = other_repo._repo[scmutil.revrange(other_repo._repo,
194 [other_rev_spec])[-1]]
193 other_revs = scmutil.revrange(other_repo._repo, [other_rev_spec])
194 other_rev = other_repo._repo[other_revs[-1] if other_revs else -1]
195 195
196 196 #case two independent repos
197 197 if org_repo != other_repo:
General Comments 0
You need to be logged in to leave comments. Login now