간만에 모닝 포스팅! ㅋ

VisaulSVN에서는 Log Message 수정하기 설정하는 방법을 따로 정리해봅니다.
당근 윈도우즈 환경 기준으로 설명합니다.

1.  해당 SVN저장소에서 hook 폴더 하위에 pre-revprop-change.bat을 생성.
  {SVNHome}\{저장소}\hook\pre-revprop-change.bat
   ex)D:\svnhome\testproject\hook\pre-revprop-change.bat

2. pre-revprop-change.bat 파일을 열어 아래 내용 복사 후 저장.
@ECHO OFF
:: Set all parameters. Even though most are not used, in case you want to add
:: changes that allow, for example, editing of the author or addition of log messages.
set repository=%1
set revision=%2
set userName=%3
set propertyName=%4
set action=%5

:: Only allow the log message to be changed, but not author, etc.
if /I not "%propertyName%" == "svn:log" goto ERROR_PROPNAME

:: Only allow modification of a log message, not addition or deletion.
if /I not "%action%" == "M" goto ERROR_ACTION

:: Make sure that the new svn:log message is not empty.
set bIsEmpty=true
for /f "tokens=*" %%g in ('find /V ""') do (
set bIsEmpty=false
)
if "%bIsEmpty%" == "true" goto ERROR_EMPTY

goto :eof

:ERROR_EMPTY
echo Empty svn:log messages are not allowed. >&2
goto ERROR_EXIT

:ERROR_PROPNAME
echo Only changes to svn:log messages are allowed. >&2
goto ERROR_EXIT

:ERROR_ACTION
echo Only modifications to svn:log revision properties are allowed. >&2
goto ERROR_EXIT

:ERROR_EXIT
exit /b 1

3. 로컬에서 TotoisSVN으로 폴더를 선택하고, 아래와 같이 log message 수정한다.
사용자 삽입 이미지




















우리 이제 소스 커밋 후에도 로그메세지 수정해서 변경내역 잘 관리해봅시다.

이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 좐군

2011/03/08 08:51 2011/03/08 08:51
,
Response
No Trackback , No Comment
RSS :
http://John.tobe30.com/tc/rss/response/332

Trackback URL : http://John.tobe30.com/tc/trackback/332

Leave a comment
[로그인][오픈아이디란?]