<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Migrating part of repository in SVN</title>
	<atom:link href="http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn</link>
	<description>Mostly notes to self</description>
	<lastBuildDate>Tue, 02 Mar 2010 17:20:44 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Subversion repository part migration &#124; Andrejs Cainikovs blog</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6955</link>
		<dc:creator>Subversion repository part migration &#124; Andrejs Cainikovs blog</dc:creator>
		<pubDate>Fri, 04 Dec 2009 14:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6955</guid>
		<description>[...] Please note, that if directory structure needs to be changed (for example, from /old-repo/projects/dir to /new-repo/dir) manual edit of dump file will not help. Instead, sed must be combined with svndumpfilter. Additional info regarding this topic can be found here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Please note, that if directory structure needs to be changed (for example, from /old-repo/projects/dir to /new-repo/dir) manual edit of dump file will not help. Instead, sed must be combined with svndumpfilter. Additional info regarding this topic can be found here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrejs Cainikovs</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6954</link>
		<dc:creator>Andrejs Cainikovs</dc:creator>
		<pubDate>Fri, 04 Dec 2009 11:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6954</guid>
		<description>Thanks, you saved my day.</description>
		<content:encoded><![CDATA[<p>Thanks, you saved my day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo Rigazzi</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6869</link>
		<dc:creator>Pablo Rigazzi</dc:creator>
		<pubDate>Tue, 27 Oct 2009 17:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6869</guid>
		<description>This is probably the most helpfull about svndumpfilter I could came across in the entire internet. Now I got my repository properly dumped and loaded one directory UP.
Thanks !</description>
		<content:encoded><![CDATA[<p>This is probably the most helpfull about svndumpfilter I could came across in the entire internet. Now I got my repository properly dumped and loaded one directory UP.<br />
Thanks !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6453</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Tue, 24 Feb 2009 04:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6453</guid>
		<description>One last typo in there, Ben.  The last sed should be ’s/Node-copyfrom-path: FOLDERNAME\//Node-copyfrom-path: /g’ which makes it:
cat /backup/svn/svn.dump &#124; svndumpfilter –drop-empty-revs –renumber-revs include FOLDERNAME &#124; sed ’s/Node-path: FOLDERNAME\//Node-path: /g’ &#124; sed ’s/Node-copyfrom-path: FOLDERNAME\//Node-copyfrom-path: /g’ &#124; gzip -9 &gt; FOLDERNAME.dump.gz</description>
		<content:encoded><![CDATA[<p>One last typo in there, Ben.  The last sed should be ’s/Node-copyfrom-path: FOLDERNAME\//Node-copyfrom-path: /g’ which makes it:<br />
cat /backup/svn/svn.dump | svndumpfilter –drop-empty-revs –renumber-revs include FOLDERNAME | sed ’s/Node-path: FOLDERNAME\//Node-path: /g’ | sed ’s/Node-copyfrom-path: FOLDERNAME\//Node-copyfrom-path: /g’ | gzip -9 &gt; FOLDERNAME.dump.gz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Ortuzar</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6340</link>
		<dc:creator>Benjamin Ortuzar</dc:creator>
		<pubDate>Wed, 03 Dec 2008 17:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6340</guid>
		<description>There was an error on my last post, this is correct:

cat /backup/svn/svn.dump &#124; svndumpfilter –drop-empty-revs –renumber-revs include FOLDERNAME &#124; sed ’s/Node-path: FOLDERNAME\//Node-path: /g’ &#124; sed ’s/Node-copyfrom-path: FOLDERNAME\//Node-path: /g’ &#124; gzip -9 &gt; FOLDERNAME.dump.gz</description>
		<content:encoded><![CDATA[<p>There was an error on my last post, this is correct:</p>
<p>cat /backup/svn/svn.dump | svndumpfilter –drop-empty-revs –renumber-revs include FOLDERNAME | sed ’s/Node-path: FOLDERNAME\//Node-path: /g’ | sed ’s/Node-copyfrom-path: FOLDERNAME\//Node-path: /g’ | gzip -9 &gt; FOLDERNAME.dump.gz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Ortuzar</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6339</link>
		<dc:creator>Benjamin Ortuzar</dc:creator>
		<pubDate>Wed, 03 Dec 2008 17:11:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6339</guid>
		<description>This works pretty nicely for me:

cat /backup/svn/svn.dump &#124; svndumpfilter --drop-empty-revs --renumber-revs include frank &#124; sed &#039;s/Node-path: FOLDERNAME\//Node-path: /g&#039; &#124; sed &#039;s/Node-copyfrom-path: FOLDERNAME\//Node-path: /g&#039; &#124; gzip -9 &gt; FOLDERNAME.dump.gz</description>
		<content:encoded><![CDATA[<p>This works pretty nicely for me:</p>
<p>cat /backup/svn/svn.dump | svndumpfilter &#8211;drop-empty-revs &#8211;renumber-revs include frank | sed &#8217;s/Node-path: FOLDERNAME\//Node-path: /g&#8217; | sed &#8217;s/Node-copyfrom-path: FOLDERNAME\//Node-path: /g&#8217; | gzip -9 &gt; FOLDERNAME.dump.gz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kranthi Polsani</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6207</link>
		<dc:creator>Kranthi Polsani</dc:creator>
		<pubDate>Mon, 28 Jul 2008 16:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6207</guid>
		<description>Hi Guys, 
Try imagining the repository structure by the following 
&quot;svn://localhost/Hardware/Circuits/trunk&quot; 
&quot;svn://localhost/Hardware/Circuits/tags&quot; 
&quot;svn://localhost/Hardware/Circuits/branches&quot;. 
While getting the dump of the repo i want the dump to be in such a way that if it is loaded into new repository it should have directories &quot;trunk, tags, and branches&quot; at the root. 
And i dont want the directories &quot;Circuits&quot; in the new repository. 
I modified the dump file changing the &quot;Node-path&quot; and &quot;Node-copyfrom-path&quot; but when i tried to load the dump file it says &quot;Checksum error&quot;. It was expecting some checksum value for the file but the actual checksum was different. 
Then i thought of changing content of the dump file before it was written. 
Below is the script i wrote: 
$ svnadmin dump C:/\svn_repository/\Hardware &#124; svndumpfilter include /Circuits/ 
trunk &#124; sed -e &quot;s/Node-path: Circuits\/trunk/Node-path: trunk/g&quot; &#124; sed -e &quot;s/Node-copyfrom-path: Circuits\/trunk/Nod​e-copyfrom-path: trunk/g&quot; &gt; hardwarecircui 
ts.dmp 
Even then i was not able to solve the checksum error issue. 
I would appreciate any help. Hope to hear from you soon. 
Regards 
Kranthi</description>
		<content:encoded><![CDATA[<p>Hi Guys,<br />
Try imagining the repository structure by the following<br />
&#8220;svn://localhost/Hardware/Circuits/trunk&#8221;<br />
&#8220;svn://localhost/Hardware/Circuits/tags&#8221;<br />
&#8220;svn://localhost/Hardware/Circuits/branches&#8221;.<br />
While getting the dump of the repo i want the dump to be in such a way that if it is loaded into new repository it should have directories &#8220;trunk, tags, and branches&#8221; at the root.<br />
And i dont want the directories &#8220;Circuits&#8221; in the new repository.<br />
I modified the dump file changing the &#8220;Node-path&#8221; and &#8220;Node-copyfrom-path&#8221; but when i tried to load the dump file it says &#8220;Checksum error&#8221;. It was expecting some checksum value for the file but the actual checksum was different.<br />
Then i thought of changing content of the dump file before it was written.<br />
Below is the script i wrote:<br />
$ svnadmin dump C:/\svn_repository/\Hardware | svndumpfilter include /Circuits/<br />
trunk | sed -e &#8220;s/Node-path: Circuits\/trunk/Node-path: trunk/g&#8221; | sed -e &#8220;s/Node-copyfrom-path: Circuits\/trunk/Nod​e-copyfrom-path: trunk/g&#8221; &gt; hardwarecircui<br />
ts.dmp<br />
Even then i was not able to solve the checksum error issue.<br />
I would appreciate any help. Hope to hear from you soon.<br />
Regards<br />
Kranthi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Never Tell&#8230; Richard Eibrand &#187; Blog Archive &#187; svn - moving part of repository to another repository</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6190</link>
		<dc:creator>Never Tell&#8230; Richard Eibrand &#187; Blog Archive &#187; svn - moving part of repository to another repository</dc:creator>
		<pubDate>Wed, 02 Jul 2008 15:48:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6190</guid>
		<description>[...] [2] md5 mismatch - good tips here and helped me in my procedure http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn [...]</description>
		<content:encoded><![CDATA[<p>[...] [2] md5 mismatch &#8211; good tips here and helped me in my procedure <a href="http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn" rel="nofollow">http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devin Lane</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-6184</link>
		<dc:creator>Devin Lane</dc:creator>
		<pubDate>Fri, 27 Jun 2008 21:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-6184</guid>
		<description>I&#039;ve used this tip twice now, much thanks!

Maki brings up a good point with specific searching for svn node paths. I was bitten by this for about half an hour, each time getting svnadmin: Dumpstream data appears to be malformed. Turns out my sed query found other unrelated items and replaced them as well. 

When I switched to searching for Node-path:, Copyfrom-path: and Node-copyfrom-path:, all was well.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used this tip twice now, much thanks!</p>
<p>Maki brings up a good point with specific searching for svn node paths. I was bitten by this for about half an hour, each time getting svnadmin: Dumpstream data appears to be malformed. Turns out my sed query found other unrelated items and replaced them as well. </p>
<p>When I switched to searching for Node-path:, Copyfrom-path: and Node-copyfrom-path:, all was well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn/comment-page-1#comment-5813</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sat, 15 Mar 2008 03:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-5813</guid>
		<description>HA. you&#039;re hilarious. &quot;svn had an elephants memory.&quot; great hacking, and thanks for posting bud.</description>
		<content:encoded><![CDATA[<p>HA. you&#8217;re hilarious. &#8220;svn had an elephants memory.&#8221; great hacking, and thanks for posting bud.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
