<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[阿Tim日志]]></title> 
<link>https://atim.cn/index.php</link> 
<description><![CDATA[专业的php开发者.开发团队的带队人]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[阿Tim日志]]></copyright>
<item>
<link>https://atim.cn/post//</link>
<title><![CDATA[svn 开启修改备注]]></title> 
<author>bkkkd &lt;partybase@gmail.com&gt;</author>
<category><![CDATA[开发应用]]></category>
<pubDate>Wed, 03 Aug 2011 08:06:31 +0000</pubDate> 
<guid>https://atim.cn/post//</guid> 
<description>
<![CDATA[ 
	有些时候提交了内容后,对于备注感觉不是写得太好.需要修改备注.但系Svn 的服务默认没有开启该功能.如果使用TortoiseSVN 尝试修改备注(在show log的备注栏中右键就可以看到编辑的功能)可能会出现以下错误:<br/><div class="code"><br/>Repository has not been enabled to accept revision propchanges;<br/>ask the administrator to create a pre-revprop-change hook <br/></div><br/>解决的方法如下：<br/><br/>在Unix/Linux平台上,在库的hooks目录下，复制pre-revprop-change.tmpl成pre-revprop-change。<br/><div class="code"><br/>cp pre-revprop-change.tmpl pre-revprop-change<br/></div><br/><br/>在Windows平台上,复制以下内容保存为文件hooks/pre-revprop-change.bat<br/>(没有测试过,<a href="http://stackoverflow.com/questions/197224/what-is-a-pre-revprop-change-hook-in-svn-and-how-do-i-create-it" target="_blank">参考地址</a>)<br/><br/><div class="code"><br/>@ECHO OFF<br/>:: Set all parameters. Even though most are not used, in case you want to add<br/>:: changes that allow, for example, editing of the author or addition of log messages.<br/>set repository=%1<br/>set revision=%2<br/>set userName=%3<br/>set propertyName=%4<br/>set action=%5<br/><br/>:: Only allow the log message to be changed, but not author, etc.<br/>if /I not &quot;%propertyName%&quot; == &quot;svn:log&quot; goto ERROR_PROPNAME<br/><br/>:: Only allow modification of a log message, not addition or deletion.<br/>if /I not &quot;%action%&quot; == &quot;M&quot; goto ERROR_ACTION<br/><br/>:: Make sure that the new svn:log message is not empty.<br/>set bIsEmpty=true<br/>for /f &quot;tokens=*&quot; %%g in (&#039;find /V &quot;&quot;&#039;) do (<br/>set bIsEmpty=false<br/>)<br/>if &quot;%bIsEmpty%&quot; == &quot;true&quot; goto ERROR_EMPTY<br/><br/>goto :eof<br/><br/>:ERROR_EMPTY<br/>echo Empty svn:log messages are not allowed. &gt;&amp;2<br/>goto ERROR_EXIT<br/><br/>:ERROR_PROPNAME<br/>echo Only changes to svn:log messages are allowed. &gt;&amp;2<br/>goto ERROR_EXIT<br/><br/>:ERROR_ACTION<br/>echo Only modifications to svn:log revision properties are allowed. &gt;&amp;2<br/>goto ERROR_EXIT<br/><br/>:ERROR_EXIT<br/>exit /b 1<br/></div><br/>Tags - <a href="https://atim.cn/tags/svn/" rel="tag">svn</a> , <a href="https://atim.cn/tags/%25E9%2585%258D%25E7%25BD%25AE/" rel="tag">配置</a> , <a href="https://atim.cn/tags/%25E8%25AE%25BE%25E7%25BD%25AE/" rel="tag">设置</a>
]]>
</description>
</item><item>
<link>https://atim.cn/post//#blogcomment</link>
<title><![CDATA[[评论] svn 开启修改备注]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://atim.cn/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>