ID tag for SVN

CVS 에서 주석에 "$Id: $" 와 같이 기록을 해 놓으면, commiter, revision, date 등의 정보가 자동으로 입력이 됩니다. 그래서 현재 내가 checkout 해 놓은 파일의 revision이 어떻게 되는지, 누가 commit 을 했는지 등의 정보를 알 수가 있는데 SVN에서는 어떻게 하는지 궁금했었는데, googling 을 하니 금방 나오는 군요.

home directory 의 ~/.subversion/config 파일에서 다음의 설정을 추가해 줍니다.

[miscellany]
enable-auto-props = yes

[auto-props]
*.java = svn:keywords=Author Date Id Revision;svn:eol-style=native


키워드의 리스트는 다음과 같습니다.


Author, Date, Header, Id, Log, Locker, Name, RCSFile, Revision, Source, State


이 설정을 마치면, commit 을 할 때 id tag 가 자동으로 갱신이 됩니다. 이미 repository에 추가 되어 있는 파일들의 tag 내용을 갱신 시키려면 다음과 같이 하시면 됩니다.

shell> svn up
shell> svn:keywords "Author Date Id Rev" file_name
shell> svn commit -m "Adding Id and Rev property to all files"


출처: http://ajmoore.blogspot.com/2007/12/ena ··· svn.html

Posted by 김정균

2009/06/04 18:00 2009/06/04 18:00
, ,
Response
No Trackback , No Comment
RSS :
http://my.oops.org/rss/response/128

Trackback URL : http://my.oops.org/trackback/128

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 2 : 3 : 4 : 5 : 6 : 7 : 8 : 9 : 10 : ... 119 : Next »

Valid XHTML 1.0 Transitional Valid CSS 2.0!
뭘 이런걸..

뭘 이런걸..

Notices

Categories

전체 (119)
군이 (11)
주절주절 (22)
Tech (86)

Calendar

«   2010/02   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28            

Site Stats