When I try to do a drush_pm_update. I get the error that my svn working copy is out of sync. This happens because I have svn warnings:
svnserve: warning: cannot set LC_CTYPE locale
svnserve: warning: environment variable LANG is en_US.UTF-8
svnserve: warning: please check that your locale name is correct
These warnings do not obstruct the correct operation of svn. This could be solved by detecting if the svn output are warnings or pending updates. You can find the code that is causing this at line 24 in svn.inc,v 1.10.
// Check for incoming updates
if (drush_shell_exec('svn status -u '. drush_get_option('svnstatusparams') .' '. $project['full_project_path'])) {
$output = preg_grep('/^Status against revision:\s*[0-9]*$/', drush_shell_exec_output(), PREG_GREP_INVERT);
if (!empty($output)) {
return drush_set_error('DRUSH_PM_SVN_REMOTE_CHANGES', dt("The SVN working copy at !path appears to be out of date with the repository (see below). Please run 'svn update' to pull down changes before continuing:\n!output", array('!path' => $project['full_project_path'], '!output' => implode("\n", $output))));
}
}
Comments
Comment #1
victorcoder commentedsubscribing
Comment #2
victorcoder commentedComment #3
victorcoder commentedIn my case it's not the server warning but preg_grep('/^Status against revision:\s*[0-9]*$/', drush_shell_exec_output(), PREG_GREP_INVERT);
doesn't handle muntilanguage svn output other than english.
Comment #4
moshe weitzman commentedfix your svn so it doesn't warn.
retitle to reflect more legit feature request
Comment #5
jonhattanLANG=C somecommandfallbacks to posix english. It is a 'command not found' in plain windows. Works for cygwin afaik.I can just commit LANG=C with no especial check for windows if you think it is better than current.
Comment #6
moshe weitzman commentedaffects a tiny set of users. set to minor.
Comment #7
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.