diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -2681,8 +2681,10 @@ class Project(object): | |||
| 2681 | if self._allrefs: | 2681 | if self._allrefs: |
| 2682 | raise GitError('%s checkout %s ' % (self.name, rev)) | 2682 | raise GitError('%s checkout %s ' % (self.name, rev)) |
| 2683 | 2683 | ||
| 2684 | def _CherryPick(self, rev): | 2684 | def _CherryPick(self, rev, ffonly=False): |
| 2685 | cmd = ['cherry-pick'] | 2685 | cmd = ['cherry-pick'] |
| 2686 | if ffonly: | ||
| 2687 | cmd.append('--ff') | ||
| 2686 | cmd.append(rev) | 2688 | cmd.append(rev) |
| 2687 | cmd.append('--') | 2689 | cmd.append('--') |
| 2688 | if GitCommand(self, cmd).Wait() != 0: | 2690 | if GitCommand(self, cmd).Wait() != 0: |
