private function drush_version_control_svn::commit

8.0.x private drush_version_control_svn::commit($project)
6.x private drush_version_control_svn::commit($project)
7.x private drush_version_control_svn::commit($project)
5.x private drush_version_control_svn::commit($project)
master private drush_version_control_svn::commit($project)

Automatically commit changes to the repository

2 calls to drush_version_control_svn::commit()
drush_version_control_svn::post_download in commands/pm/version_control/
Implementation of post_download().
drush_version_control_svn::post_update in commands/pm/version_control/
Implementation of post_update().


commands/pm/version_control/, line 114
Drush pm SVN extension




private function commit($project) {
  if (drush_get_option('svncommit')) {
    $message = drush_get_option('svnmessage');
    if (empty($message)) {
      $message = dt("Drush automatic commit: \n") . implode(' ', $_SERVER['argv']);
    if (drush_shell_exec('svn commit ' . drush_get_option('svncommitparams') . ' -m "' . $message . '" ' . $project['full_project_path'])) {
      drush_log(dt('Project committed to Subversion successfully'), 'ok');
    else {
      drush_set_error('DRUSH_PM_SVN_COMMIT_PROBLEMS', dt("Problems were encountered committing your changes to Subversion.\nThe specific errors are below:\n!errors", array('!errors' => implode("\n", drush_shell_exec_output()))));
  else {
    drush_print(dt("You should consider committing the new code to your Subversion repository.\nIf this version becomes undesireable, use Subversion to roll back."));