Server | Network

[Tip]SVN Keyword 자동 등록

두루물 2012. 5. 9. 17:58

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 {} \;