diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1637,6 +1637,14 @@ class Project(object): | |||
1637 | if self._allrefs: | 1637 | if self._allrefs: |
1638 | raise GitError('%s checkout %s ' % (self.name, rev)) | 1638 | raise GitError('%s checkout %s ' % (self.name, rev)) |
1639 | 1639 | ||
1640 | def _CherryPick(self, rev, quiet=False): | ||
1641 | cmd = ['cherry-pick'] | ||
1642 | cmd.append(rev) | ||
1643 | cmd.append('--') | ||
1644 | if GitCommand(self, cmd).Wait() != 0: | ||
1645 | if self._allrefs: | ||
1646 | raise GitError('%s cherry-pick %s ' % (self.name, rev)) | ||
1647 | |||
1640 | def _ResetHard(self, rev, quiet=True): | 1648 | def _ResetHard(self, rev, quiet=True): |
1641 | cmd = ['reset', '--hard'] | 1649 | cmd = ['reset', '--hard'] |
1642 | if quiet: | 1650 | if quiet: |