subversion에서 log message를 변경하는 방법
commit 시 log를 잘못 입력했다면
서버의 {repository}/project/hooks에서
pre-revprop-change.tmpl 파일에 실행권한을 주고 .tmpl확장자를 제거 후
(없다면 생성한다.)
client에서의 커맨드를 입력한다.
형식은 다음과 같다.
propset 명령:
svn propset PROPNAME [PROPVAL | -F VALFILE] PATH...
svn propset PROPNAME --revprop -r REV [PROPVAL | -F VALFILE] [TARGET]
Description
Set PROPNAME
to PROPVAL
on files, directories, or revisions. The first example creates a versioned, local property change in the working copy, and the second creates an unversioned, remote property change on a repository revision (TARGET
only determines which repository to access).
Subversion has a number of “special” properties that affect its behavior. See the section called “Subversion properties” for more on these properties.
Alternate Names
pset, ps
Options
--file (-F) FILE --quiet (-q) --revision (-r) REV --targets FILENAME --depth ARG --revprop --username USER --password PASS --no-auth-cache --non-interactive --encoding ENC --force --config-dir DIR --changelist ARG
Examples
Set the mime type on a file:
$ svn propset svn:mime-type image/jpeg foo.jpg property 'svn:mime-type' set on 'foo.jpg'
On a UNIX system, if you want a file to have the executable permission set:
$ svn propset svn:executable ON somescript property 'svn:executable' set on 'somescript'
Perhaps you have an internal policy to set certain properties for the benefit of your coworkers:
$ svn propset owner sally foo.c property 'owner' set on 'foo.c'
If you made a mistake in a log message for a particular revision and want to change it, use --revprop
and set svn:log
to the new log message:
$ svn propset --revprop -r 25 svn:log "Journaled about trip to New York." property 'svn:log' set on repository revision '25'
Or, if you don't have a working copy, you can provide a URL.
$ svn propset --revprop -r 26 svn:log "Document nap." http://svn.red-bean.com/repos property 'svn:log' set on repository revision '25'
Lastly, you can tell propset to take its input from a file. You could even use this to set the contents of a property to something binary:
$ svn propset owner-pic -F sally.jpg moo.c property 'owner-pic' set on 'moo.c'
참고 사이트 :
http://svnbook.red-bean.com/en/1.0/ch05s02.html
http://chestofbooks.com/computers/revision-control/subversion-svn/svn-Propset-Ref-svn-C-Propset.html
댓글