SVN commit failed directory missing problem

Source: Internet
Author: User
Tags commit svn

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.