<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>toxicsoftware.com &#187; subversion</title> <atom:link href="http://toxicsoftware.com/tag/subversion/feed/" rel="self" type="application/rss+xml" /><link>http://toxicsoftware.com</link> <description>RANDOMIZE USR 0</description> <lastBuildDate>Thu, 22 Dec 2011 03:35:22 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Subversion Moved</title><link>http://toxicsoftware.com/subversion-moved/</link> <comments>http://toxicsoftware.com/subversion-moved/#comments</comments> <pubDate>Sat, 04 Aug 2007 15:27:08 +0000</pubDate> <dc:creator>schwa</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[Source Code]]></category> <category><![CDATA[subversion]]></category><guid isPermaLink="false">http://toxicsoftware.com/subversion-moved/</guid> <description><![CDATA[I&#8217;ve had a lot of emails asking where the subversion repository has gone. The simple answer is I&#8217;ve stopped hosting my public subversion repository on DreamHost and have now created a Google Project for it. The project URL is: http://code.google.com/p/toxic-public/ &#8230; <a href="http://toxicsoftware.com/subversion-moved/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve had a lot of emails asking where the subversion repository has gone.</p><p>The simple answer is I&#8217;ve stopped hosting my public subversion repository on DreamHost and have now created a Google Project for it. The project URL is:</p><p><a href="http://code.google.com/p/toxic-public/">http://code.google.com/p/toxic-public/</a></p><p>And the subversion root is here:</p><p><a href="http://toxic-public.googlecode.com//">http://toxic-public.googlecode.com//</a></p><p>Google will be a lot more reliable than DreamHost ever will be. I also get bug tracking and easy user maintenance.</p><p>I&#8217;ll update the broken links when I get a chance.</p> ]]></content:encoded> <wfw:commentRss>http://toxicsoftware.com/subversion-moved/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Mac OS Custom Icons and subversion don&#8217;t mix</title><link>http://toxicsoftware.com/mac-os-custom-icons-and-subversion-dont-mix/</link> <comments>http://toxicsoftware.com/mac-os-custom-icons-and-subversion-dont-mix/#comments</comments> <pubDate>Thu, 21 Sep 2006 00:30:03 +0000</pubDate> <dc:creator>schwa</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[subversion]]></category><guid isPermaLink="false">http://toxicsoftware.com/mac-os-custom-icons-and-subversion-dont-mix/</guid> <description><![CDATA[I had some big trouble with subversion today. I had upgraded to subversion 1.4 on both client and server a few days ago and today something went tits up with the repository on the server. I wont go into more &#8230; <a href="http://toxicsoftware.com/mac-os-custom-icons-and-subversion-dont-mix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I had some big trouble with subversion today. I had upgraded to subversion 1.4 on both client and server a few days ago and today something went tits up with the repository on the server. I wont go into more detail here until I&#8217;ve reproduced and isolated the problem but suffice to say I deemed it worthwhile to try and restore my subversion repository from a recent dump file. Try was the operative word:</p><pre><code>[schwa@umbriel] Dumps$ admin create test
[schwa@umbriel] Dumps$admin load test &lt; dumpfile 'vnadmin: Invalid control character '0x0d' in path 'trunk/Path/To/Some/Directory/Icon&lt;
</code></pre><p>My attempt to recover from a dumpfile failed because my repository contained a folder with a custom icon. Crickey. I find it odd that subversion lets me check these bad files into subversion in the first place. But whatever, I had to recover this dump file. Fortunately there is a tool called &#8216;dumpfilter&#8217; that can be used to filter arbitrary paths in dump files. But after removing the first bad Icon file I found this particular repository had more than one. Instead of removing them by hand I started to write a shell script to automate the filtering process. Of course my shellfu is too low so I switched to Python:</p><pre><code>#!/usr/bin/python
import commands
import re
import sys
theInputFile = sys.argv[1]
theOutputFile = None
if len(sys.argv) &gt; 2:
    theOutputFile = sys.argv[2]
    thePattern = re.compile(r'^Node-path: (.+/Icon\r)$')
    thePaths = [thePattern.match(theLine).group(1) for theLine in open(theInputFile) if thePattern.match(theLine)]
    if theOutputFile == None:
        print 'Found the following paths:'
        for thePath in thePaths:
            print '\t\'%s\'' % thePath.replace('\r', '\\r')
        else:
            theCommand = 'dumpfilter exclude %s &lt; %s &gt; %s' % (' '.join(['\'%s\" % thePath for thePath in thePaths]), theInputFile, theOutputFile)
            print commands.getstatusoutput(theCommand)[1]
</code></pre><p>This script, when passed a path to an existing subversion dump file, will list all paths within the dump that contain custom icons. When passed a path to an existing dump file and the name of a new dump file it will remove all paths containing custom icons. You can then use this new dump file to populate your subversion repository without those pesky files. Update: From the comments, a link to Ryan Wilcox&#8217;s blog page concerning the problem (and a more detailed description of the solution): <a href="http://www.wilcoxd.com/blog/howto-get-out-the-icon-files-in-a-subversion-repo.html">http://www.wilcoxd.com/blog/howto-get-out-the-icon-files-in-a-subversion-repo.html</a></p> ]]></content:encoded> <wfw:commentRss>http://toxicsoftware.com/mac-os-custom-icons-and-subversion-dont-mix/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 1/16 queries in 0.006 seconds using disk: basic
Object Caching 299/322 objects using disk: basic

Served from: toxicsoftware.com @ 2012-02-08 14:25:09 -->
