[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is it possible to 'unimport'?

From: Blair Zajac <blair_at_orcaware.com>
Date: Thu, 31 Jan 2008 14:55:03 -0800

Mark Knoop wrote:
>>
>> On Jan 31, 2008, at 16:34, Mark Knoop wrote:
>>
>>> If I import a large file into a repository by accident is it
>>> possible to reverse the action so as not to permanently increase the
>>> size of the repository?
>>
>> You would have to take the repository offline, "svnadmin dump" it to
>> a text file, "svndumpfilter exclude" to exclude the part you don't
>> want to keep, "svnadmin load" it into a new repository, bring the
>> server back up, and then have everybody check out new working copies
>> (if they had working copies of a revision greater than or equal to
>> the one you wanted to filter)
>>
>> http://subversion.tigris.org/faq.html#removal
>>
>
> Ah. I read that but was hoping there was an easier way that I just
> hadn't been able to find. I'm just playing at the moment so is not a big
> deal I can just delete the repository and start again. Will be more
> careful what I import in future!

That's why I recommend never using import. Create the top level directory where
you want to "import" your files, check out this directory, then copy the files
into it you want to use, then add them. Finally, do a commit.

Much safer that way.

You can also do an inplace checkout using

$ cd into/the/top/of/my/code
$ svn co http://hostname/new/directory .
$ svn add *
$ svn commit

Regards,
Blair

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-31 23:55:27 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.