1, configure the personal home directory svn configuration file: ~/.subversion/config, positioning and configuration for the following:
[plain] view plain copy [helpers] Editor-cmd =/usr/bin/vim Save exit, ready to use.
This way, when you preview your changes, you only need to run: SVN diff, which invokes Vim to display the submitted content.
2, edit the Svn-commit.tmp file, write on the above instructions, the following will show the modified file list
Maintenance Reason: Bug number
: 15344
Description: Modified a memory leak
--this line, and those below, 'll be ignored--
M test/memcheck.cpp
3, when not required to submit, do not save, direct exit Vim, will prompt the following content, directly select a, you will cancel the submission
Log message unchanged or not specified
(a) bort, (c) ontinue, (e) dit
a
4, when the need to submit, save content, will be directly submitted to success