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
 
@@ -173,12 +173,18 @@ class PullRequestModel(BaseModel):
 
                        force=True)
 
            revs = obj.missing
 

	
 
            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':
 
                _revset_predicates = {
 
                        'branch': 'branch',
 
                        'book': 'bookmark',
 
@@ -273,8 +279,7 @@ class PullRequestModel(BaseModel):
 
            discovery_data = self._get_discovery(org_repo_scm, org_ref,
 
                                               other_repo_scm, other_ref)
 
        cs_ranges = self._get_changesets(alias,
 
                                         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
 
@@ -164,13 +164,13 @@ ${_('%s Changelog') % c.repo_name} - ${c
 

	
 
                          }else{
 
                            YUD.get('open_new_pr').innerHTML = _TM['Open new pull request'];
 
                          }
 
                        }
 

	
 
                        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;
 

	
 
                        	// now select all checkboxes in the middle.
 
                        	var checked = false;
 
                        	for (var i=0; i<checkboxes.length; i++){
0 comments (0 inline, 0 general)