<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Jay Harris is Cpt. LoadTest - Quick Tips</title>
    <link>http://www.cptloadtest.com/</link>
    <description>a .net developers blog on improving user experience of humans and coders</description>
    <language>en-us</language>
    <copyright>Jason Harris</copyright>
    <lastBuildDate>Fri, 27 Feb 2009 21:54:45 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.12105.0</generator>
    <managingEditor>jharris@harrisdesigns.com</managingEditor>
    <webMaster>jharris@harrisdesigns.com</webMaster>
    <item>
      <trackback:ping>http://www.cptloadtest.com/Trackback.aspx?guid=4837e042-3810-4dd1-8460-4c4dc229d5fd</trackback:ping>
      <pingback:server>http://www.cptloadtest.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.cptloadtest.com/PermaLink,guid,4837e042-3810-4dd1-8460-4c4dc229d5fd.aspx</pingback:target>
      <dc:creator>Jay Harris</dc:creator>
      <wfw:comment>http://www.cptloadtest.com/CommentView,guid,4837e042-3810-4dd1-8460-4c4dc229d5fd.aspx</wfw:comment>
      <wfw:commentRss>http://www.cptloadtest.com/SyndicationService.asmx/GetEntryCommentsRss?guid=4837e042-3810-4dd1-8460-4c4dc229d5fd</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Have you ever made comments when committing in to source control that you wish you
could take back? Perhaps in a rage, you entered "Jimmy's code was a pile of fermenting
humus that didn't work. So I fixed it!" Now you realize that Jimmy will see it, your
boss is going to see it, and you want to change the comments to something that has
a bit more tact. Or maybe your reason is far less malicious: you identified a major
bug that you just committed, and you would like to update the comment log to say "Don't
use this revision. It has a major bug."
</p>
        <p>
In Subversion, the comments can be updated long after the original commit. Log messages
are just a property on the repository revision.
</p>
        <pre class="nocontrols" name="code">svn propset --revision &lt;REVISION&gt; --revprop &lt;MESSAGE&gt; &lt;URL&gt;</pre>
        <ul>
          <li>
&lt;REVISION&gt; : The revision number of the target log message. 
</li>
          <li>
&lt;MESSAGE&gt; : The value of the new log message, wrapped in quotes if necessary. 
</li>
          <li>
&lt;URL&gt; : The base URL of your repository. Since this applies to a revision property,
rather than a file property, only the base URL of the repository is needed, rather
than a URL directly to a file.</li>
        </ul>
        <p>
Now your malicious revision comment can be overwritten by:
</p>
        <pre class="nocontrols" name="code">svn propset --revision 123 --revprop "Fixed issue #17" http://svnserver/myrepos/</pre>
        <p>
But next time, do try to be nice to Jimmy.
</p>
        <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4cb2c096-64fc-4552-836a-fb52d0af0452" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati
Tags: <a href="http://technorati.com/tags/Subversion" rel="tag">Subversion</a>,<a href="http://technorati.com/tags/Quick%20Tips" rel="tag">Quick
Tips</a>,<a href="http://technorati.com/tags/Programming" rel="tag">Programming</a></div>
        <img width="0" height="0" src="http://www.cptloadtest.com/aggbug.ashx?id=4837e042-3810-4dd1-8460-4c4dc229d5fd" />
      </body>
      <title>Quick Tips: Changing Subversion Commit Comments</title>
      <guid isPermaLink="false">http://www.cptloadtest.com/PermaLink,guid,4837e042-3810-4dd1-8460-4c4dc229d5fd.aspx</guid>
      <link>http://www.cptloadtest.com/2009/02/27/Quick-Tips-Changing-Subversion-Commit-Comments.aspx</link>
      <pubDate>Fri, 27 Feb 2009 21:54:45 GMT</pubDate>
      <description>&lt;p&gt;
Have you ever made comments when committing in to source control that you wish you
could take back? Perhaps in a rage, you entered "Jimmy's code was a pile of fermenting
humus that didn't work. So I fixed it!" Now you realize that Jimmy will see it, your
boss is going to see it, and you want to change the comments to something that has
a bit more tact. Or maybe your reason is far less malicious: you identified a major
bug that you just committed, and you would like to update the comment log to say "Don't
use this revision. It has a major bug."
&lt;/p&gt;
&lt;p&gt;
In Subversion, the comments can be updated long after the original commit. Log messages
are just a property on the repository revision.
&lt;/p&gt;
&lt;pre class="nocontrols" name="code"&gt;svn propset --revision &amp;lt;REVISION&amp;gt; --revprop &amp;lt;MESSAGE&amp;gt; &amp;lt;URL&amp;gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;
&amp;lt;REVISION&amp;gt; : The revision number of the target log message. 
&lt;li&gt;
&amp;lt;MESSAGE&amp;gt; : The value of the new log message, wrapped in quotes if necessary. 
&lt;li&gt;
&amp;lt;URL&amp;gt; : The base URL of your repository. Since this applies to a revision property,
rather than a file property, only the base URL of the repository is needed, rather
than a URL directly to a file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Now your malicious revision comment can be overwritten by:
&lt;/p&gt;
&lt;pre class="nocontrols" name="code"&gt;svn propset --revision 123 --revprop "Fixed issue #17" http://svnserver/myrepos/&lt;/pre&gt;
&lt;p&gt;
But next time, do try to be nice to Jimmy.
&lt;/p&gt;
&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4cb2c096-64fc-4552-836a-fb52d0af0452" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati
Tags: &lt;a href="http://technorati.com/tags/Subversion" rel="tag"&gt;Subversion&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Quick%20Tips" rel="tag"&gt;Quick
Tips&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Programming" rel="tag"&gt;Programming&lt;/a&gt;
&lt;/div&gt;
&lt;img width="0" height="0" src="http://www.cptloadtest.com/aggbug.ashx?id=4837e042-3810-4dd1-8460-4c4dc229d5fd" /&gt;</description>
      <comments>http://www.cptloadtest.com/CommentView,guid,4837e042-3810-4dd1-8460-4c4dc229d5fd.aspx</comments>
      <category>Programming</category>
      <category>Quick Tips</category>
    </item>
  </channel>
</rss>