Revision number of a file is an important information. 개정 번호의 파일은 중요한 정보를합니다. Two most common uses are in serialization and in making version specific database upgrades for an application. 2 개의 직렬 및 제작에 대부분의 일반적인 용도는 구체적인 데이터베이스를 업그레이 드하는 응용 프로그램 버전. I am using it for the later. 나는 그것을 나중에 사용합니다. Here is a simple way how you can add revision number (Id, Date, Author and HeadURL) automatically to your source files. 여기에 간단한 방법 수정하는 방법을 추가할 수있습니다 번호 (번호, 날짜, 저자 및 headurl) 귀하의 소스 파일을 자동으로 적용합니다.

First you need to add the keyword anchor at the desired location in the file. 우선 당신의 키워드를 추가할 필요가 앵커를 원하는 위치에 파일을합니다. For example to get Revision information you must add $Rev$ or $Revision$ to your chosen location. 예를 들어 정보를 수정하거나 달러를 추가해야합니다 $ 개정판 달러 $를 귀하의 선택된 위치를 수정합니다.

Note: The keywords are case sensitive. 참고 :이 키워드는 대소문자를 구분합니다.

Then you need to inform Subversion that these keyword(s) need to be substituted in your chosen file. 그렇다면 파괴를 알릴 필요가 해당 키워드를 (영어)를 교체해야 할 파일을 선택합니다. For example if you have added the $Rev$ keyword to translator.php. 예를 들어, $ 키워드를 추가한 개정판 달러 translator.php합니다. Then you run propset command as follows: 그렇다면 다음과 같이 명령을 실행 propset :
svn propset svn:keywords “Revision” translator.php svn propset svn : 키워드 "수정"translator.php

You are done! 당신이 끝났어!
Now, after commit, your $Rev$ keyword will be automatically replaced with something like: 지금, 후에 커밋, 당신의 $ 개정판 달러 같은 키워드가 자동으로 바뀝니다 :

$Rev: 130 $ $ 개정판 : 130 $

Note: The number will be automatically updated whenever anyone commits a new revision. 참고 :이 번호는 누구 커밋 새 개정 때마다 자동으로 업데이 트됩니다.

The list of keywords (from Subversion documentation) along with their alternatives are: 의 목록에있는 키워드 (파괴 설명서)와 함께 그들의 대안은 :

Date 날짜

This keyword describes the last time the file was known to have been changed in the repository, and looks something like $Date: 2002-07-22 21:42:37 -0700 (Mon, 22 Jul 2002) $. 이 키워드에 대해 설명합니다 마지막으로 파일을 리포지 토리에서 변경된 것으로 알려과 같은 $ 날짜 : 2002년 7월 22일 21시 42분 37초 -0700 (월, 2002년 7월 22일) $합니다. It may also be specified as LastChangedDate . 그것 lastchangeddate로 지정되어있을 수있습니다.

Revision 수정

This keyword describes the last known revision in which this file changed in the repository, and looks something like $Revision: 144 $ . 이 키워드에 대해 설명합니다 마지막으로 알려진 수정으로이 파일을 변경 리포지 토리, 그리고 다음과 같이 $ 수정 : 144 $합니다. It may also be specified as LastChangedRevision or Rev . 그것 lastchangedrevision로 지정되어있을 수있습니다 또는 개정판합니다.

Author 저자

This keyword describes the last known user to change this file in the repository, and looks something like $Author: harry $ . 마지막으로 알려진 사용자가 해당 키워드에 대해 설명합니다 리포지 토리에서이 파일을 변경하고 다음과 같이 $ 저자 : 해리 $합니다. It may also be specified as LastChangedBy . 그것 lastchangedby로 지정되어있을 수있습니다.

HeadURL headurl

This keyword describes the full URL to the latest version of the file in the repository, and looks something like $HeadURL: http://svn.collab.net/repos/trunk/README $ . 이 키워드에 대해 설명합니다 전체를 최신 버전으로의 파일을 리포지 토리, 그리고 다음과 같이 $ headurl : http://svn.collab.net/repos/trunk/readme $합니다. It may be abbreviated as URL . url 약식으로 할 수도있습니다.

Id 번호

This keyword is a compressed combination of the other keywords. 이 키워드는 다른 키워드의 조합을 압축합니다. Its substitution looks something like $Id: calc.c 148 2002-07-28 21:30:43Z sally $, and is interpreted to mean that the file calc.c was last changed in revision 148 on the evening of July 28, 2002 by the user sally. 그 교체 보이는 $ 번호 : calc.c 148 2002년 7월 28일 21시 30분 43초 z 샐리 $, 그리고 그 이상의 파일 특성을 의미로 해석 calc.c가 마지막으로 변경된 저녁에 148 개정 2002년 7월 28일 사용자에 의해 샐리합니다.