使用 TortoiseSVN 自動加入 SVN 版號

  • 其實早在 cvs 就有這功能, 就是在 commit 後, source code 檔案內能自動出現這次 commit 的 svn 版號、日期時間..
  1. 在要提供的 SVN 目錄按下滑鼠右鍵出現選單去選 TortoiseSVN → Properties
  2. 出現 Properties 視窗後, 點選右下方 New 按鈕, 出現的選單選 Keywords
  3. 出現 Keywords 視窗後, 可以依照需要勾選會使用到的關鍵字
  1. 增加 svn 關鍵字變數 Exp. $Id$
  2. 更改後透過 TortoiseSVN commit
  3. 完成 commit 之後, 可以看到 $Id$ 已經自動增加 svn 的相關資訊
  • tech/svn_props.txt
  • 上一次變更: 2016/11/06 13:31
  • jonathan