Changeset - 5deb16cd2802
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2012-12-08 00:57:18
marcin@python-works.com
fixes #668 cherry picking of changeset should also work now on picking single changesets, and the ones from top
2 files changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/pull_request.py
Show inline comments
 
@@ -176,6 +176,12 @@ class PullRequestModel(BaseModel):
 
            for cs in map(binascii.hexlify, revs):
 
                _cs = org_repo.get_changeset(cs)
 
                changesets.append(_cs)
 
            # in case we have revisions filter out the ones not in given range
 
            if org_ref[0] == 'rev' and other_ref[0] == 'rev':
 
                revs = [x.raw_id for x in changesets]
 
                start = org_ref[1]
 
                stop = other_ref[1]
 
                changesets = changesets[revs.index(start):revs.index(stop) + 1]
 
        else:
 
            #no remote compare do it on the same repository
 
            if alias == 'hg':
 
@@ -276,5 +282,4 @@ class PullRequestModel(BaseModel):
 
                                         org_repo_scm, org_ref,
 
                                         other_repo_scm, other_ref,
 
                                         discovery_data)
 

	
 
        return cs_ranges, discovery_data
rhodecode/templates/changelog/changelog.html
Show inline comments
 
@@ -167,7 +167,7 @@ ${_('%s Changelog') % c.repo_name} - ${c
 
                          }
 
                        }
 

	
 
                        if(checked_checkboxes.length>1){
 
                        if(checked_checkboxes.length>0){
 
                        	var rev_end = checked_checkboxes[0].name;
 
                        	var rev_start = checked_checkboxes[checked_checkboxes.length-1].name;
 

	
0 comments (0 inline, 0 general)