Show More
@@ -176,6 +176,12 b' class PullRequestModel(BaseModel):' | |||
|
176 | 176 | for cs in map(binascii.hexlify, revs): |
|
177 | 177 | _cs = org_repo.get_changeset(cs) |
|
178 | 178 | changesets.append(_cs) |
|
179 | # in case we have revisions filter out the ones not in given range | |
|
180 | if org_ref[0] == 'rev' and other_ref[0] == 'rev': | |
|
181 | revs = [x.raw_id for x in changesets] | |
|
182 | start = org_ref[1] | |
|
183 | stop = other_ref[1] | |
|
184 | changesets = changesets[revs.index(start):revs.index(stop) + 1] | |
|
179 | 185 | else: |
|
180 | 186 | #no remote compare do it on the same repository |
|
181 | 187 | if alias == 'hg': |
@@ -276,5 +282,4 b' class PullRequestModel(BaseModel):' | |||
|
276 | 282 | org_repo_scm, org_ref, |
|
277 | 283 | other_repo_scm, other_ref, |
|
278 | 284 | discovery_data) |
|
279 | ||
|
280 | 285 | return cs_ranges, discovery_data |
General Comments 0
You need to be logged in to leave comments.
Login now