簡単なシナリオがあります (.txt ファイルに基づく):
mycodefile.txt を作成し、テキストを貼り付けて svn に追加します。
$Id_which_is_populated_once_per_revision$ $Svn_commit_comments_but_also_populated_once$ I have added this in the revision #1.
コメント「JIRA-1234」でファイルをコミットします。コミット後のファイルは次のようになります。
$Id: mycodefile.txt 1 2013-07-29 12:05:30Z svnuser $ $Svncomments: JIRA-1234 $ I have added this in the revision #1.
別の変更を加える:
$Id: mycodefile.txt 1 2013-07-29 12:05:30Z svnuser $ $Svncomments: JIRA-1234 $ $Id_which_is_populated_once_per_revision$ $Svn_commit_comments_but_also_populated_once$ I have added this in the revision #1. And this in the revision #2.
コメント「JIRA-2345」でファイルをコミットします。コミット後のファイルは次のようになります。
$Id: mycodefile.txt 1 2013-07-29 12:05:30Z svnuser $ $Svncomments: JIRA-1234 $ $Id: mycodefile.txt 2 2013-07-29 12:07:45Z svnuser $ $Svncomments: JIRA-2345 $ I have added this in the revision #1. And this in the revision #2.
等々。
そのため、多くの変更を行った後でも、svn リビジョン ログを使用せずに、組み込みのコメントのみを使用してそれらを追跡できます。
現在、単純な $Id$ auto-prop を使用する場合、ステップ 4 のファイルは次のようになります (以前の $Id$ とコメントを上書きします)。
$Id: mycodefile.txt 2 2013-07-29 12:07:45Z svnuser $ $Svncomments: JIRA-2345 $
$Id: mycodefile.txt 2 2013-07-29 12:07:45Z svnuser $ $Svncomments: JIRA-2345 $
I have added this in the revision #1.
And this in the revision #2.
その上、実際には $Svncomments$ auto-prop はありません (私の欲求を説明するために作成しただけです)。
問題は、上記をどのように実装するかです (auto-props などを使用して)。
ありがとう。