<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<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: Delete parts of subversion history</title>
	<link>http://robmayhew.com/delete-parts-of-subversion-history/</link>
	<description>Rob Mayhew - Software Developer</description>
	<pubDate>Fri, 21 Nov 2008 00:45:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Rob</title>
		<link>http://robmayhew.com/delete-parts-of-subversion-history/#comment-13748</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Mon, 25 Aug 2008 13:43:16 +0000</pubDate>
		<guid>http://robmayhew.com/delete-parts-of-subversion-history/#comment-13748</guid>
		<description>You will need to do 2 dumps in this case I think.

svnadmin dump /path/to/current/repo -r1:224875 &gt; svn.dumpa
svnadmin dump /path/to/current/repo -r224876:HEAD &gt; svn.dumpb
svnadmin create /path/to/new/repo
svnadmin load /path/to/new/repo &lt; svn.dumpa
svnadmin load /path/to/new/repo &lt; svn.dumpb

Your svn # numbers will be off by one. To avoid this do a blank commit after loading dumpa.

Note: I have not tried this.</description>
		<content:encoded><![CDATA[<p>You will need to do 2 dumps in this case I think.</p>
<p>svnadmin dump /path/to/current/repo -r1:224875 > svn.dumpa<br />
svnadmin dump /path/to/current/repo -r224876:HEAD > svn.dumpb<br />
svnadmin create /path/to/new/repo<br />
svnadmin load /path/to/new/repo < svn.dumpa<br />
svnadmin load /path/to/new/repo < svn.dumpb</p>
<p>Your svn # numbers will be off by one. To avoid this do a blank commit after loading dumpa.</p>
<p>Note: I have not tried this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhilash</title>
		<link>http://robmayhew.com/delete-parts-of-subversion-history/#comment-13744</link>
		<dc:creator>abhilash</dc:creator>
		<pubDate>Mon, 25 Aug 2008 06:08:45 +0000</pubDate>
		<guid>http://robmayhew.com/delete-parts-of-subversion-history/#comment-13744</guid>
		<description>Hai,
  I need to delete particular revision from history. Actually I have mistakenly tagged in worng folder. I have deletd the folder from svn. But in history still its showing. How can I delete that history.
eg: revision no. 224876

Please reply. It will be very helpful.</description>
		<content:encoded><![CDATA[<p>Hai,<br />
  I need to delete particular revision from history. Actually I have mistakenly tagged in worng folder. I have deletd the folder from svn. But in history still its showing. How can I delete that history.<br />
eg: revision no. 224876</p>
<p>Please reply. It will be very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: House of Code</title>
		<link>http://robmayhew.com/delete-parts-of-subversion-history/#comment-9396</link>
		<dc:creator>House of Code</dc:creator>
		<pubDate>Sat, 01 Mar 2008 20:29:28 +0000</pubDate>
		<guid>http://robmayhew.com/delete-parts-of-subversion-history/#comment-9396</guid>
		<description>&lt;strong&gt;Subversion Obliterate, the forgotten feature...&lt;/strong&gt;

Subversion Obliterate has been a much wanted feature for many years now, yet it is not even planned or mentioned on the Subversion roadmap. Discussions have been going on and money has been waving, yet still no movement towards a concrete implementatio...</description>
		<content:encoded><![CDATA[<p><strong>Subversion Obliterate, the forgotten feature&#8230;</strong></p>
<p>Subversion Obliterate has been a much wanted feature for many years now, yet it is not even planned or mentioned on the Subversion roadmap. Discussions have been going on and money has been waving, yet still no movement towards a concrete implementatio&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren G</title>
		<link>http://robmayhew.com/delete-parts-of-subversion-history/#comment-6374</link>
		<dc:creator>Darren G</dc:creator>
		<pubDate>Tue, 11 Dec 2007 16:44:12 +0000</pubDate>
		<guid>http://robmayhew.com/delete-parts-of-subversion-history/#comment-6374</guid>
		<description>This helped me. I am runing SVN on a windows serverSince I envisage doing this on a regular (but infrequent) basis I thought I would throw together a batch file to help me along with it. The text of it is below if anyone is interested:

@echo off
REM check inputs

if %1x==x goto abortusage
if %2x==x goto abortusage

REM check Path

if not exist "%1" set msg="The Path to the repository (%1) does not exist!"
if not exist "%1" goto abortusage


REM Delete any older dump temp files
if exist ".\tmp" rd ".\tmp" /S /Q

REM get the last version number
svnlook youngest "%1" &#62; mrr.txt
REM read the line from the MRR file
for /F %%f IN (.\mrr.txt) DO set svnlast=%%f

echo --------------------------
echo Last Revision was %svnlast%
echo --------------------------
REM Dump
svnadmin dump "%1" -r%2:%svnlast% &#62; svn.dump

REM copy the currnt live to a tmp
mkdir tmp
XCOPY "%1\*.*" ./tmp

REM delete original
rd "%1" /S /Q

REM create  a "new" repository	
svnadmin create "%1"


REM reload 
svnadmin load "%1" </description>
		<content:encoded><![CDATA[<p>This helped me. I am runing SVN on a windows serverSince I envisage doing this on a regular (but infrequent) basis I thought I would throw together a batch file to help me along with it. The text of it is below if anyone is interested:</p>
<p>@echo off<br />
REM check inputs</p>
<p>if %1x==x goto abortusage<br />
if %2x==x goto abortusage</p>
<p>REM check Path</p>
<p>if not exist &#8220;%1&#8243; set msg=&#8221;The Path to the repository (%1) does not exist!&#8221;<br />
if not exist &#8220;%1&#8243; goto abortusage</p>
<p>REM Delete any older dump temp files<br />
if exist &#8220;.\tmp&#8221; rd &#8220;.\tmp&#8221; /S /Q</p>
<p>REM get the last version number<br />
svnlook youngest &#8220;%1&#8243; &gt; mrr.txt<br />
REM read the line from the MRR file<br />
for /F %%f IN (.\mrr.txt) DO set svnlast=%%f</p>
<p>echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
echo Last Revision was %svnlast%<br />
echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
REM Dump<br />
svnadmin dump &#8220;%1&#8243; -r%2:%svnlast% &gt; svn.dump</p>
<p>REM copy the currnt live to a tmp<br />
mkdir tmp<br />
XCOPY &#8220;%1\*.*&#8221; ./tmp</p>
<p>REM delete original<br />
rd &#8220;%1&#8243; /S /Q</p>
<p>REM create  a &#8220;new&#8221; repository<br />
svnadmin create &#8220;%1&#8243;</p>
<p>REM reload<br />
svnadmin load &#8220;%1&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua L. Davis</title>
		<link>http://robmayhew.com/delete-parts-of-subversion-history/#comment-5992</link>
		<dc:creator>Joshua L. Davis</dc:creator>
		<pubDate>Tue, 20 Nov 2007 14:40:46 +0000</pubDate>
		<guid>http://robmayhew.com/delete-parts-of-subversion-history/#comment-5992</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
