<?xml version="1.0" encoding="UTF-8"?>
<feed
  xmlns="http://www.w3.org/2005/Atom"
  xmlns:thr="http://purl.org/syndication/thread/1.0"
  xml:lang="en"
   >
  <title type="text">Code Kills</title>
  <subtitle type="text"></subtitle>

  <updated>2012-01-22T21:05:58Z</updated>
  <generator uri="http://blogofile.com/">Blogofile</generator>

  <link rel="alternate" type="text/html" href="http://blog.codekills.net" />
  <id>http://blog.codekills.net/feed/atom/</id>
  <link rel="self" type="application/atom+xml" href="http://blog.codekills.net/feed/atom/" />
  <entry>
    <author>
      <name>David Wolever</name>
      <uri>http://blog.codekills.net</uri>
    </author>
    <title type="html">Another reason I like SVK</title>
    <link rel="alternate" type="text/html" href="http://blog.codekills.net/2008/04/16/another-reason-i-like-svk" />
    <id>http://blog.codekills.net/2008/04/16/another-reason-i-like-svk</id>
    <updated>2008-04-16T18:47:00Z</updated>
    <published>2008-04-16T18:47:00Z</published>
    <category scheme="http://blog.codekills.net" term="DrProject" />
    <category scheme="http://blog.codekills.net" term="Work" />
    <summary type="html">Another reason I like SVK</summary>
    <content type="html" xml:base="http://blog.codekills.net/2008/04/16/another-reason-i-like-svk">

&lt;p&gt;I got a fairly significant patch to DrProject today.  I wanted to show it to the other developers so they could give it a look over.  How&#39;d I do it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>David Wolever</name>
      <uri>http://blog.codekills.net</uri>
    </author>
    <title type="html">Reverting Changes in SVN (or: it&#39;s not as easy as svn up -r)</title>
    <link rel="alternate" type="text/html" href="http://blog.codekills.net/2008/02/08/reverting-changes-in-svn-(or--it's-not-as-easy-as-svn-up--r)" />
    <id>http://blog.codekills.net/2008/02/08/reverting-changes-in-svn-(or--it's-not-as-easy-as-svn-up--r)</id>
    <updated>2008-02-08T16:57:00Z</updated>
    <published>2008-02-08T16:57:00Z</published>
    <category scheme="http://blog.codekills.net" term="DrProject" />
    <category scheme="http://blog.codekills.net" term="Python" />
    <category scheme="http://blog.codekills.net" term="Work" />
    <summary type="html">Reverting Changes in SVN (or: it&#39;s not as easy as svn up -r)</summary>
    <content type="html" xml:base="http://blog.codekills.net/2008/02/08/reverting-changes-in-svn-(or--it's-not-as-easy-as-svn-up--r)">

&lt;p&gt;If there is one thing that I&#39;ve found universally confusing about version control systems, it&#39;s how to revert back to a previous revision, then move on from there.  Conventional wisdom would dictate that &lt;code&gt;svn up -r $OLD&lt;/code&gt; with some additional flag that says &lt;code&gt;pretend that we&#39;re still at HEAD&lt;/code&gt; would do the trick... But, alas, there exists no such flag.&lt;/p&gt;
&lt;p&gt;So, besides &lt;code&gt;svn cat -r $OLD $FILE &amp;gt; $FILE&lt;/code&gt;, what&#39;s the best way to revert a file (or entire tree) to an older revision?  Well, it turns out that &lt;strong&gt;merge&lt;/strong&gt; is the tool you&#39;re looking for.&lt;/p&gt;
&lt;p&gt;The trick is that you can &lt;code&gt;diff&lt;/code&gt; backwards as well as forwards:&lt;/p&gt;
&lt;pre&gt;
[wolever@thebes] ~/test_dr/All svn diff -r &lt;strong&gt;2:1&lt;/strong&gt;
Index: stuff
===================================================================
--- stuff       (revision 2)
+++ stuff       (revision 1)
@@ -1,4 +1,3 @@
 Let us endeavor so to live that when we come to die even the undertaker will be
 sorry.
                -- Mark Twain, &#34;Pudd&#39;nhead Wilson&#39;s Calendar&#34;
-Increased knowledge will help you now.  Have mate&#39;s phone bugged.
Index: docs.html
&lt;/pre&gt;
&lt;p&gt;Which means that &lt;strong&gt;merge&lt;/strong&gt; will work both ways as well:&lt;/p&gt;
&lt;pre&gt;
[wolever@thebes] ~/test_dr/All svn &lt;strong&gt;merge -r 2:1&lt;/strong&gt; stuff
U    stuff
[wolever@thebes] ~/test_dr/All svn ci -m &#34;reverted changes&#34; stuff
[wolever@thebes] ~/test_dr/All svn diff -r 1:3 stuff
[wolever@thebes] ~/test_dr/All

&lt;/pre&gt;
&lt;p&gt;Of course, this will also work with the myriad of other version control tools out there.  In fact, if you&#39;re still using SVN, reverting old changes is probably the least of your problems... At least compared to, say, merging different branches ^_^&lt;/p&gt;
&lt;p&gt;But that&#39;s a post for another day -- I need to stop writing about merging and actually get on with, err, &lt;a href=&#34;https://www.drproject.org/DrProject/ticket/1236&#34;&gt;doing it&lt;/a&gt;...&lt;/p&gt;
</content>
  </entry>
  <entry>
    <author>
      <name>David Wolever</name>
      <uri>http://blog.codekills.net</uri>
    </author>
    <title type="html">DrProject/Trac Wiki Syntax Highlighting for Vim</title>
    <link rel="alternate" type="text/html" href="http://blog.codekills.net/2007/08/16/drproject-trac-wiki-syntax-highlighting-for-vim" />
    <id>http://blog.codekills.net/2007/08/16/drproject-trac-wiki-syntax-highlighting-for-vim</id>
    <updated>2007-08-16T14:39:00Z</updated>
    <published>2007-08-16T14:39:00Z</published>
    <category scheme="http://blog.codekills.net" term="DrProject" />
    <category scheme="http://blog.codekills.net" term="Vim" />
    <summary type="html">DrProject/Trac Wiki Syntax Highlighting for Vim</summary>
    <content type="html" xml:base="http://blog.codekills.net/2007/08/16/drproject-trac-wiki-syntax-highlighting-for-vim">

&lt;p&gt;After being frustrated with boring &lt;a href=&#34;http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/spectro-html.html&#34;&gt;white-on-almost-black&lt;/a&gt; (&lt;a href=&#34;http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/spectro.vim&#34;&gt;spectro&lt;/a&gt;) while working with &lt;a href=&#34;http://drproject.org&#34;&gt;DrProject&lt;/a&gt; wiki files, I broke down and wrote a Vim plugin to make the syntax pretty.  It will also parse most of the &lt;a href=&#34;http://trac.edgewall.org&#34;&gt;Trac&lt;/a&gt; syntax (and more should be easy to add).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Get it:&lt;/strong&gt; &lt;a href=&#34;http://wolever.net/~wolever/drpwiki.vim&#34;&gt;http://wolever.net/~wolever/drpwiki.vim&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Using it:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Save it to ~/.vim/syntax/drpwiki.vim (create the directory if it doesn&#39;t exist)
&lt;/li&gt;&lt;li&gt;In Vim, enter `:set filetype=drpwiki`
&lt;/li&gt;&lt;/ol&gt;
</content>
  </entry>
</feed>

