1

簡単なシナリオがあります (.txt ファイルに基づく):

  1. 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.  
    
  2. コメント「JIRA-1234」でファイルをコミットします。コミット後のファイルは次のようになります。

    $Id: mycodefile.txt 1 2013-07-29 12:05:30Z svnuser $ $Svncomments: JIRA-1234 $  
    I have added this in the revision #1.  
    
  3. 別の変更を加える:

    $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.  
    
  4. コメント「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 などを使用して)。
ありがとう。

4

1 に答える 1

0

いいえ、できません。そして、それは最初から悪い考えです。

変更ログが必要な場合は、からの出力を使用してビルド/パッケージ化プロセスで生成します。svn log

于 2013-07-29T12:59:35.680 に答える