First Cut diagram:
First, let's talk about the background of the problem, this web project needs to be installed online, installed Discuz know what's going on, the installation process will make some changes to the contents of the files and folders in the project, such as change the configuration file, delete some folders, etc., after installation, the code version on the server is the latest , this latest version needs to be submitted, and this issue occurs at the time of submission,
Asked leader the cause of the problem, leader said that although the folder was deleted on the file system, but not removed in version control, you need to delete the code in version control:
SVN Delete Yourfolder
For the use of the Delete command, I refer to the following Web site:
http://www.lampblog.net/2011/01/svn-delete%EF%BC%8D%E5%88%A0%E9%99%A4%E6%96%87%E4%BB%B6%E5%92%8C%E7%9B%AE%E5%BD%95/
After deleting and submitting, the following problems occur:
$ svn commit
SVN: Commit failed (details below):
svn: Cannot get log information using external editor, consider setting environment variable $SVN _editor, or use--message (-m) or--file (-f) Option
SVN: There is no svn_editor,visual or EDITOR environment variable set, and there is no "editor-cmd" option in the configuration parameters of the runtime
Solution, I set this environment variable to vim, that is, using Vim for editing, the terminal entered the following command:
Export Svn_editor=vim
Before submitting, will enter Vim, show some of the submitted operations will be carried out, strange is it to the hint that the following operation will be ignored, regardless of him, the direct withdrawal of vim, the operation of Vim, please check the information, VIM knowledge is unix-like system necessary skills, personal point of view, do not spray.
After exiting vim, you will be given three options:
Log information not modified, or unspecified
a) terminated, C continue, E) Edit:
Select C Continue, submit successfully.
A plugin was installed online before, and it was not found when searching for a plugin file locally, because the new file on the Web server was not added to version control and was executed on the server's project root directory.
SVN add *--force
Submit it again.