##// END OF EJS Templates
fixes #668 cherry picking of changeset should also work now on picking single changesets, and the ones from top
marcink -
r3076:5deb16cd beta
parent child Browse files
Show More
@@ -176,6 +176,12 b' class PullRequestModel(BaseModel):'
176 for cs in map(binascii.hexlify, revs):
176 for cs in map(binascii.hexlify, revs):
177 _cs = org_repo.get_changeset(cs)
177 _cs = org_repo.get_changeset(cs)
178 changesets.append(_cs)
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 else:
185 else:
180 #no remote compare do it on the same repository
186 #no remote compare do it on the same repository
181 if alias == 'hg':
187 if alias == 'hg':
@@ -276,5 +282,4 b' class PullRequestModel(BaseModel):'
276 org_repo_scm, org_ref,
282 org_repo_scm, org_ref,
277 other_repo_scm, other_ref,
283 other_repo_scm, other_ref,
278 discovery_data)
284 discovery_data)
279
280 return cs_ranges, discovery_data
285 return cs_ranges, discovery_data
@@ -167,7 +167,7 b''
167 }
167 }
168 }
168 }
169
169
170 if(checked_checkboxes.length>1){
170 if(checked_checkboxes.length>0){
171 var rev_end = checked_checkboxes[0].name;
171 var rev_end = checked_checkboxes[0].name;
172 var rev_start = checked_checkboxes[checked_checkboxes.length-1].name;
172 var rev_start = checked_checkboxes[checked_checkboxes.length-1].name;
173
173
General Comments 0
You need to be logged in to leave comments. Login now