Subversion 修改 Log.

如果 Subversion commit 時, 不小心寫錯 log , 該怎麼辦?

這時候需要有 svnadmin 權限的帳號(也表示要和 svn repository. 的目錄在同一台主機)
下個小指令

svnadmin setlog linux-2.4.27 -r 131 –bypass-hooks test.txt

setlog 是更改 log
linux-2.4.27 是 subversion repository 的目錄
-r 131 : 第 131 版
–bypass-hooks 不要檢查 post-revprop-change flag
test.txt 你想要更新的文字檔內容

請注意, 此動作是不可逆的, 在進行此動作之前請先備份你的 subversion.

Related posts

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>