<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: How to convert from Subversion to Git</title>
	<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/</link>
	<description>Software Developer</description>
	<pubDate>Thu, 11 Mar 2010 21:19:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Albert</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-51336</link>
		<dc:creator>Albert</dc:creator>
		<pubDate>Wed, 10 Feb 2010 22:53:58 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-51336</guid>
		<description>Hey - this might help for creating tags from branches:

git branch -r &#124; awk '{ print "git tag "$1" tags/"$1 " &#38;&#38; git branch -r -d tags/"$1 }'</description>
		<content:encoded><![CDATA[<p>Hey - this might help for creating tags from branches:</p>
<p>git branch -r | awk &#8216;{ print &#8220;git tag &#8220;$1&#8243; tags/&#8221;$1 &#8221; &amp;&amp; git branch -r -d tags/&#8221;$1 }&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-51081</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 21 Jan 2010 16:47:22 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-51081</guid>
		<description>Thanks a lot -- this is a very helpful no-nonsense guide!</description>
		<content:encoded><![CDATA[<p>Thanks a lot &#8212; this is a very helpful no-nonsense guide!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: W-Mark Kubacki</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-48135</link>
		<dc:creator>W-Mark Kubacki</dc:creator>
		<pubDate>Fri, 02 Oct 2009 13:15:50 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-48135</guid>
		<description>If you have more than one repository, this loop might help you finding all users:

for R in repo1 repo2 repo3 ...; do svn log --quiet file:///var/svn/$R &#124; grep ^r &#124; cut -d '&#124;' -f 2; done &#124; sort -u</description>
		<content:encoded><![CDATA[<p>If you have more than one repository, this loop might help you finding all users:</p>
<p>for R in repo1 repo2 repo3 &#8230;; do svn log &#8211;quiet file:///var/svn/$R | grep ^r | cut -d &#8216;|&#8217; -f 2; done | sort -u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-47803</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Tue, 22 Sep 2009 20:22:27 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-47803</guid>
		<description>I'm getting the following error on step 3 
Found possible branch point: http://svn2.xp-dev.com/svn/oncemade-cssSys/trunk =&#62; http://svn2.xp-dev.com/svn/oncemade-cssSys/tags/ModernBrowsers, 62
Use of uninitialized value in substitution (s///) at /opt/local/libexec/git-core/git-svn line 1657.
Use of uninitialized value in concatenation (.) or string at /opt/local/libexec/git-core/git-svn line 1657.
refs/remotes/trunk: 'http://svn2.xp-dev.com/svn/oncemade-cssSys' not found in ''


how can I fix it?

Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the following error on step 3<br />
Found possible branch point: <a href="http://svn2.xp-dev.com/svn/oncemade-cssSys/trunk" rel="nofollow">http://svn2.xp-dev.com/svn/oncemade-cssSys/trunk</a> =&gt; <a href="http://svn2.xp-dev.com/svn/oncemade-cssSys/tags/ModernBrowsers," rel="nofollow">http://svn2.xp-dev.com/svn/oncemade-cssSys/tags/ModernBrowsers,</a> 62<br />
Use of uninitialized value in substitution (s///) at /opt/local/libexec/git-core/git-svn line 1657.<br />
Use of uninitialized value in concatenation (.) or string at /opt/local/libexec/git-core/git-svn line 1657.<br />
refs/remotes/trunk: &#8216;http://svn2.xp-dev.com/svn/oncemade-cssSys&#8217; not found in &#8221;</p>
<p>how can I fix it?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Dowman</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-47316</link>
		<dc:creator>Paul Dowman</dc:creator>
		<pubDate>Thu, 10 Sep 2009 16:01:53 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-47316</guid>
		<description>Thanks Jason, I've fixed that. As you said, the formatting was messed up, it had actual angle-bracket characters instead of HTML entities.</description>
		<content:encoded><![CDATA[<p>Thanks Jason, I&#8217;ve fixed that. As you said, the formatting was messed up, it had actual angle-bracket characters instead of HTML entities.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason L</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-47312</link>
		<dc:creator>Jason L</dc:creator>
		<pubDate>Thu, 10 Sep 2009 15:39:53 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-47312</guid>
		<description>FYI - for the "authors.txt" file, the blog post ate the email part of it (because of the greater-than less-than brackets). It should be:

username = John Doe (less-than bracket)some.email@example.com(greater-than bracket)

Thanks for the article!</description>
		<content:encoded><![CDATA[<p>FYI - for the &#8220;authors.txt&#8221; file, the blog post ate the email part of it (because of the greater-than less-than brackets). It should be:</p>
<p>username = John Doe (less-than bracket)some.email@example.com(greater-than bracket)</p>
<p>Thanks for the article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Dowman</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-46876</link>
		<dc:creator>Paul Dowman</dc:creator>
		<pubDate>Fri, 28 Aug 2009 15:16:11 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-46876</guid>
		<description>Oops, thanks Dustin! I've fixed it.</description>
		<content:encoded><![CDATA[<p>Oops, thanks Dustin! I&#8217;ve fixed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-46869</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Fri, 28 Aug 2009 11:25:35 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-46869</guid>
		<description>I haven’t gotten this to work yet, but it seems step 3 should be [svn repo url] rather than [git repo url], right?</description>
		<content:encoded><![CDATA[<p>I haven’t gotten this to work yet, but it seems step 3 should be [svn repo url] rather than [git repo url], right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun Mangelsdorf</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-44703</link>
		<dc:creator>Shaun Mangelsdorf</dc:creator>
		<pubDate>Mon, 22 Jun 2009 08:56:35 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-44703</guid>
		<description>andreas:
My best guess without any more information than you've given here is that you have committed to your tags as though they were branches. When you do that, there is an extra changeset (or more than one) that is unique to the svn tag, so git needs to treat it as a branch.

To revert this behaviour, you can do something like this:

$ git merge-base trunk tags/Ver1.0
abcdef1234567890abcdef1234567890abcdef12
$ git tag Ver1.0 abcdef1234567890abcdef1234567890abcdef12
$ git branch -r -d tags/Ver1.0

Note though that you'll likely lose revisions if you do this. If you want to see what revisions you'll lose:
$ git merge-base trunk tags/Ver1.0
abcdef1234567890abcdef1234567890abcdef12
$ git log abcdef1234..trunk

Note I've used a shortened form of the revision hash, two periods, and then "trunk" to specify the range. (Just making it obvious that it's to be taken literally :)</description>
		<content:encoded><![CDATA[<p>andreas:<br />
My best guess without any more information than you&#8217;ve given here is that you have committed to your tags as though they were branches. When you do that, there is an extra changeset (or more than one) that is unique to the svn tag, so git needs to treat it as a branch.</p>
<p>To revert this behaviour, you can do something like this:</p>
<p>$ git merge-base trunk tags/Ver1.0<br />
abcdef1234567890abcdef1234567890abcdef12<br />
$ git tag Ver1.0 abcdef1234567890abcdef1234567890abcdef12<br />
$ git branch -r -d tags/Ver1.0</p>
<p>Note though that you&#8217;ll likely lose revisions if you do this. If you want to see what revisions you&#8217;ll lose:<br />
$ git merge-base trunk tags/Ver1.0<br />
abcdef1234567890abcdef1234567890abcdef12<br />
$ git log abcdef1234..trunk</p>
<p>Note I&#8217;ve used a shortened form of the revision hash, two periods, and then &#8220;trunk&#8221; to specify the range. (Just making it obvious that it&#8217;s to be taken literally :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andreas</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-44589</link>
		<dc:creator>andreas</dc:creator>
		<pubDate>Thu, 18 Jun 2009 21:30:16 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-44589</guid>
		<description>Step 4 isn't working on my machine.
I've got the listing of the remote branches:
git branch -r
  Ver2.x
  tags/Ver1.0
  tags/Ver1.1
  tags/Ver2.0
  trunk

But the git tag only tags in the remote branch. After deleting the remote branch I end up with no tags in my local clone. Am I missing somthing?

The thing is I want to totally convert to git, no step back. So I want to have all remote branches in the local master.</description>
		<content:encoded><![CDATA[<p>Step 4 isn&#8217;t working on my machine.<br />
I&#8217;ve got the listing of the remote branches:<br />
git branch -r<br />
  Ver2.x<br />
  tags/Ver1.0<br />
  tags/Ver1.1<br />
  tags/Ver2.0<br />
  trunk</p>
<p>But the git tag only tags in the remote branch. After deleting the remote branch I end up with no tags in my local clone. Am I missing somthing?</p>
<p>The thing is I want to totally convert to git, no step back. So I want to have all remote branches in the local master.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Dowman</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-43974</link>
		<dc:creator>Paul Dowman</dc:creator>
		<pubDate>Wed, 27 May 2009 17:23:53 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-43974</guid>
		<description>Thanks Matt, I've fixed it.</description>
		<content:encoded><![CDATA[<p>Thanks Matt, I&#8217;ve fixed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-43972</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Wed, 27 May 2009 16:27:12 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-43972</guid>
		<description>Thanks for this explanation.  For the most part, very helpful.  Only got stuck on step 3, as there are some parameters missing.

Intead of:
git svn clone --no-metadata -A authors.txt -t tags -b branches -T trunk

it would be clearer to indicate:
git svn clone [svn repository] --no-metadata -A authors.txt -t tags -b branches -T trunk [destination]

other than that, very helpful!</description>
		<content:encoded><![CDATA[<p>Thanks for this explanation.  For the most part, very helpful.  Only got stuck on step 3, as there are some parameters missing.</p>
<p>Intead of:<br />
git svn clone &#8211;no-metadata -A authors.txt -t tags -b branches -T trunk</p>
<p>it would be clearer to indicate:<br />
git svn clone [svn repository] &#8211;no-metadata -A authors.txt -t tags -b branches -T trunk [destination]</p>
<p>other than that, very helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Bieber</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-15773</link>
		<dc:creator>Ron Bieber</dc:creator>
		<pubDate>Mon, 26 Jan 2009 11:50:28 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-15773</guid>
		<description>Quick and dirty shell script to convert remote tags/branches to tags per this article:

#!/bin/sh
for i in `git branch -r&#124;grep tags\/&#124;grep -v \\@`
do
        TAGNAME=`echo $i &#124; perl -p -e 's/tags\///sig;'`
        echo "Converting $i to $TAGNAME";
        git tag $TAGNAME $i
        git branch -r -d $i &#62;/dev/nul
done</description>
		<content:encoded><![CDATA[<p>Quick and dirty shell script to convert remote tags/branches to tags per this article:</p>
<p>#!/bin/sh<br />
for i in `git branch -r|grep tags\/|grep -v \\@`<br />
do<br />
        TAGNAME=`echo $i | perl -p -e &#8217;s/tags\///sig;&#8217;`<br />
        echo &#8220;Converting $i to $TAGNAME&#8221;;<br />
        git tag $TAGNAME $i<br />
        git branch -r -d $i &gt;/dev/nul<br />
done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Evans</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-7030</link>
		<dc:creator>Ron Evans</dc:creator>
		<pubDate>Thu, 23 Oct 2008 21:37:39 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-7030</guid>
		<description>For me, I use:

svn -q log &#124; grep ^r &#124; cut -d '&#124;' -f 2 &#124; sort &#124; uniq</description>
		<content:encoded><![CDATA[<p>For me, I use:</p>
<p>svn -q log | grep ^r | cut -d &#8216;|&#8217; -f 2 | sort | uniq</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-6550</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sat, 13 Sep 2008 07:52:05 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-6550</guid>
		<description>floehopper: I make that
svn log --quiet &#124; grep ^r &#124; cut -d '&#124;' -f 2 &#124; sort &#124; uniq</description>
		<content:encoded><![CDATA[<p>floehopper: I make that<br />
svn log &#8211;quiet | grep ^r | cut -d &#8216;|&#8217; -f 2 | sort | uniq</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: floehopper</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-5958</link>
		<dc:creator>floehopper</dc:creator>
		<pubDate>Sat, 26 Jul 2008 22:36:59 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-5958</guid>
		<description>Thanks - that's helpful. In case anyone else finds it useul, here's a quick one-liner to list all the users that have committed to your svn repository...

svn log --quiet &#124; grep '^r.*' &#124; cut -d ' ' -f 3 &#124; sort &#124; uniq</description>
		<content:encoded><![CDATA[<p>Thanks - that&#8217;s helpful. In case anyone else finds it useul, here&#8217;s a quick one-liner to list all the users that have committed to your svn repository&#8230;</p>
<p>svn log &#8211;quiet | grep &#8216;^r.*&#8217; | cut -d &#8216; &#8216; -f 3 | sort | uniq</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianni Chiappetta</title>
		<link>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-5950</link>
		<dc:creator>Gianni Chiappetta</dc:creator>
		<pubDate>Sat, 26 Jul 2008 13:46:14 +0000</pubDate>
		<guid>http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/#comment-5950</guid>
		<description>Thanks Paul, I'll be referring to this article!</description>
		<content:encoded><![CDATA[<p>Thanks Paul, I&#8217;ll be referring to this article!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
