SVN log template-SVN checkin log Template

Source: Internet
Author: User
#!/bin/sh## SVN_EDITOR script#[ $# -eq 1 ] || {  echo "usage: $0 file"  exit 1}file=$1ed=$VISUAL[ -z $ed ] && ed=$EDITOR[ -z $ed ] && ed=vicat <<ENDTEMPLATE >$file.$Feature        :BugID          :Author         :Reviewer       :Description    :Changed List   :ENDTEMPLATEcat $file >>$file.$sum=`cksum $file.$`if $ed $file.$; then  newsum=`cksum $file.$` if [ "$newsum" != "$sum" ]; then    rm -f $file    mv $file.$ $file  else       rm -f $file.$ fielse  echo "editor \"$ed\" failed"  exit 1fi

Save the preceding script :~ /. Subversion/svn-log.template and Set permissions:

Chmod + x ~ /. Subversion/svn-log.template

In. bashrc, set:

Export svn_editor =/home/<user>/. Subversion/svn-log.template

Then execute

Source ~ /. Bashrc

Do not restart to make the settings take effect.

In this way, the following template will pop up each time you checkin:

Feature: bugid: Author: reviewer: Description: changed list: -- this row and the following content will be ignored -- M src/COM/spare/pinyin. Java

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.