<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Fun with ones and zeros - git</title>
<subtitle>Barry&#039;s notes on computer software and hardware</subtitle>
<link href="/blog/tags/git"></link>
<updated>2026-04-24T06:18:28-07:00</updated>
<id>urn:uuid:4db7392e-a618-c6e1-e841-d1ff2eacd861</id>
<entry>
<title>q2java and qwpython on GitHub</title>
<link href="/blog/entries/q2java-and-qwpython-github"></link>
<id>urn:uuid:acf3e3f0-223a-da34-fb26-8b29f392cc3e</id>
<updated>2012-03-19T17:01:00-07:00</updated>
<author><name>Barry Pederson</name>
<email>bp@barryp.org</email>
</author>
<content type="html">&lt;p&gt;Quite some time ago I worked on a couple interesting projects, &lt;a href=&quot;/static/q2java/&quot;&gt;q2java&lt;/a&gt; which embedded Java into a Quake2 server and then allowed for games to be written in Java; and &lt;a href=&quot;http://qwpython.sourceforge.net/&quot;&gt;qwpython&lt;/a&gt;, which wrapped up the QuakeWorld dedicated server engine as a Python module and came with a QuakeC -&amp;gt; Python translator, so existing QW games like CTF could be converted to Python and hacked on from there.&lt;/p&gt;
&lt;p&gt;Some time back I had created Subversion repositories of the various releases of those packages (didn&#039;t really know or use VCSes back then), and had them on an Apache mod_svn server.   Well, SVN is kind of a PITA, and I&#039;d like to not have to keep that server config going, so I looked at converting those repos to something else.&lt;/p&gt;
&lt;p&gt;First tried &lt;a href=&quot;https://pypi.python.org/pypi/hgsvn&quot;&gt;hgsvn&lt;/a&gt;, which has worked pretty decently for smaller or simpler repos, but something in the q2java one make it crap out.  &lt;/p&gt;
&lt;p&gt;Next tried the &lt;a href=&quot;http://mercurial.selenic.com/wiki/ConvertExtension&quot;&gt;hg convert extension&lt;/a&gt;, which worked better, but only when using a local SVN URL (like file://...), and then didn&#039;t manage to pick up the tags correctly.&lt;/p&gt;
&lt;p&gt;Decided to give Git a try, first with &lt;a href=&quot;https://john.albin.net/git/convert-subversion-to-git&quot;&gt;Converting a Subversion repository to Git&lt;/a&gt; (in seven steps).  It worked, but was kind of a nasty process for a Git newbie to wade through.  The tags still didn&#039;t seem quite right.&lt;/p&gt;
&lt;p&gt;Finally, realized GitHub has its own Subversion import built right into the website, and gave that a try.  Very very nice, made importing the svn repo a breeze, and seems to have gotten the tags just right.  Only took two steps: enter the svn URL, fill in a translation table of svn userids to git authors.  I&#039;d recommend this highly for anyone looking to move off svn.  See the &lt;a href=&quot;https://github.com/barryp/q2java&quot;&gt;q2java&lt;/a&gt; and &lt;a href=&quot;https://github.com/barryp/qwpython&quot;&gt;qwpython&lt;/a&gt; results here.  &lt;/p&gt;</content>
</entry>
</feed>