<?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"
	>
<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>Random thoughts of a random mind</description>
	<pubDate>Tue, 18 Nov 2008 22:50:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Kranthi Polsani</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn#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 
"svn://localhost/Hardware/Circuits/trunk" 
"svn://localhost/Hardware/Circuits/tags" 
"svn://localhost/Hardware/Circuits/branches". 
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 "trunk, tags, and branches" at the root. 
And i dont want the directories "Circuits" in the new repository. 
I modified the dump file changing the "Node-path" and "Node-copyfrom-path" but when i tried to load the dump file it says "Checksum error". 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 "s/Node-path: Circuits\/trunk/Node-path: trunk/g" &#124; sed -e "s/Node-copyfrom-path: Circuits\/trunk/Nod​e-copyfrom-path: trunk/g" &#62; 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-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 - 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-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'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-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're hilarious. "svn had an elephants memory." 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>
	<item>
		<title>By: Fredrik</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn#comment-5639</link>
		<dc:creator>Fredrik</dc:creator>
		<pubDate>Mon, 11 Feb 2008 10:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-5639</guid>
		<description>Thank you! I'm happy that my random thoughts are of use to someone.</description>
		<content:encoded><![CDATA[<p>Thank you! I&#8217;m happy that my random thoughts are of use to someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Mirkalami</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn#comment-5608</link>
		<dc:creator>Jim Mirkalami</dc:creator>
		<pubDate>Fri, 08 Feb 2008 21:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-5608</guid>
		<description>I have been visiting this site a lot lately, so i thought it is a good idea to show my appreciation with a comment.

Thanks,
Jim Mirkalami</description>
		<content:encoded><![CDATA[<p>I have been visiting this site a lot lately, so i thought it is a good idea to show my appreciation with a comment.</p>
<p>Thanks,<br />
Jim Mirkalami</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maki</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn#comment-5284</link>
		<dc:creator>Maki</dc:creator>
		<pubDate>Wed, 16 Jan 2008 10:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-5284</guid>
		<description>Don't do string substitutions with "sed 's/\/family/\/department/g'"!
NEVER!
Cause, you are also modifying actual content, like you discovered binary, but also if some writes an essay about families.

Just search for "Node-path: family" or "Copyfrom-path: family" and replace this. See SVN book chapter 5 "repository administration" for more details.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t do string substitutions with &#8220;sed &#8217;s/\/family/\/department/g&#8217;&#8221;!<br />
NEVER!<br />
Cause, you are also modifying actual content, like you discovered binary, but also if some writes an essay about families.</p>
<p>Just search for &#8220;Node-path: family&#8221; or &#8220;Copyfrom-path: family&#8221; and replace this. See SVN book chapter 5 &#8220;repository administration&#8221; for more details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjornar</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn#comment-3821</link>
		<dc:creator>Bjornar</dc:creator>
		<pubDate>Tue, 16 Oct 2007 22:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-3821</guid>
		<description>I also tried using sed to change file paths in an SVN dump, and ran into the same import error. I initially tried your suggestion to pipe through sed during the original dump command rather than on the saved file, and it didn't work for me.

After a little further investigation I realized there is a '-b' flag for sed to treat the input stream as binary. When I added this flag svnadmin load worked perfectly, even after running sed on the saved dump file!</description>
		<content:encoded><![CDATA[<p>I also tried using sed to change file paths in an SVN dump, and ran into the same import error. I initially tried your suggestion to pipe through sed during the original dump command rather than on the saved file, and it didn&#8217;t work for me.</p>
<p>After a little further investigation I realized there is a &#8216;-b&#8217; flag for sed to treat the input stream as binary. When I added this flag svnadmin load worked perfectly, even after running sed on the saved dump file!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darshak</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn#comment-2445</link>
		<dc:creator>Darshak</dc:creator>
		<pubDate>Thu, 12 Jul 2007 21:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-2445</guid>
		<description>Hi,
Thanks a ton for posting this. This was exactly what i was looking for and you really really saved my day.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks a ton for posting this. This was exactly what i was looking for and you really really saved my day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curt Sampson</title>
		<link>http://blog.fredrikbostrom.net/2007/03/14/migrating-part-of-repository-in-svn#comment-893</link>
		<dc:creator>Curt Sampson</dc:creator>
		<pubDate>Tue, 03 Apr 2007 11:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikbostrom.net/?p=40#comment-893</guid>
		<description>svnadmin load has a --parent-dir argument you can use to put the loaded paths under a specific directory in the new repo. I find it easiest to use that and then, if necessary, do an svn move to get things into the right place in the new repo.

But you just lucked out on this one. I'm trying to deal with a much more complex situation: a repository that has had a lot of copies done all over it, and has IP that I need to get rid of before I can import what code is mine into my repo.

It's pretty inconvenient that svndumpfilter can do only includes or only excludes in a pass, but not both. It's even more inconvenient that if you do multiple passes where svndumpfilter doesn't fail, it can still produce a dump that can't be loaded. I may just have to abandon up most of my change history on this one, which is fairly frustrating.</description>
		<content:encoded><![CDATA[<p>svnadmin load has a &#8211;parent-dir argument you can use to put the loaded paths under a specific directory in the new repo. I find it easiest to use that and then, if necessary, do an svn move to get things into the right place in the new repo.</p>
<p>But you just lucked out on this one. I&#8217;m trying to deal with a much more complex situation: a repository that has had a lot of copies done all over it, and has IP that I need to get rid of before I can import what code is mine into my repo.</p>
<p>It&#8217;s pretty inconvenient that svndumpfilter can do only includes or only excludes in a pass, but not both. It&#8217;s even more inconvenient that if you do multiple passes where svndumpfilter doesn&#8217;t fail, it can still produce a dump that can&#8217;t be loaded. I may just have to abandon up most of my change history on this one, which is fairly frustrating.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
