본문 바로가기
Server | Network

[Tip]SVN Keyword 자동 등록

by 두루물 2012. 5. 9.

unix/linux


계정홈의 ./subversion/config


MS 윈도우즈


Windows7 / Vista 이상:


C:\Users\[My Account]\AppData\Roaming\Subversion\Config

(자세히는 더 안알아 봤지만 WOW 정책에 의거 설치여건(BIT)에 따라 Roaming이 아닐수 있음)


XP 이하:


C:\Documents and Settings\[My Account]\Application Data\Subversion\config



[auto-props]

### The format of the entries is:

###   file-name-pattern = propname[=value][;propname[=value]...]

### The file-name-pattern can contain wildcards (such as '*' and

### '?').  All entries which match (case-insensitively) will be

### applied to the file.  Note that auto-props functionality

### must be enabled, which is typically done by setting the

### 'enable-auto-props' option.

# *.c = svn:eol-style=native

*.cpp = svn:keywords=Author Date Id Rev URL;svn:eol-style=native

*.h = svn:keywords=Author Date Id Rev URL;svn:eol-style=native

# *.dsp = svn:eol-style=CRLF

# *.dsw = svn:eol-style=CRLF

# *.sh = svn:eol-style=native;svn:executable

# *.txt = svn:eol-style=native;svn:keywords=Author Date Id Rev URL;

# *.png = svn:mime-type=image/png

# *.jpg = svn:mime-type=image/jpeg

# Makefile = svn:eol-style=native

*.as = svn:keywords=Author Date Id Rev URL;svn:eol-style=native


*신규 추가 파일에 한해 적용된다.


기존 파일에 부여하기 위해서는 아래 명령.

svn propset svn:keywords "Author Date Id Rev" file_name


일괄처리

find . \( -name "*.php" -o -name "*.js" \) -exec svn propset svn:keywords Id {} \;

'Server | Network' 카테고리의 다른 글

소켓 종료와 TIME_WAIT(Socket termination and TIME_WAIT)  (0) 2012.07.19
DB2 관련  (0) 2012.05.23
APACHE /VAR/WWW 임시 PERMISSION  (0) 2011.12.05
SSH Port 포트 변경  (0) 2011.11.25
SVN 설치 및 저장소 설정,세팅  (0) 2011.11.16