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

Re: Reverse LAST commit

From: Chip Turner <cturner_at_redhat.com>
Date: 2004-10-16 22:05:20 CEST

Andrew Arnott <andrewarnott@gmail.com> writes:

> issue though: Sometimes I do a
> svn commit
> and as the list is going by of files added, I realize that I added 8MB
> of files that I didn't want in the repository. Sure, there's always a
> reverse merge that would remove the files, but meanwhile 8MB was just
> added to a repository. My repository is currently around 300MB, and I
> know that's probably small relatively speaking, but I have this fear
> of all those multi-megabyte mistakes piling up and giving me a huge
> repository for nothing. Is there a way to hack the repository, at
> least to reverse just the very last commit made?
>
> If not, what do you more experienced users of Subversion do in cases
> like this? What about ten years down the road when your repository is
> multi-GB? Do you just live with it? Export and start a new one?

You can use 'svnadmin dump -rSTART:FINISH' to dump ranges of
revisions. Do that up to the previous commit and you're good.

Or, you can do a full 'svnadmin dump' and use svndumpfilter in
--exclude mode to exclude the files that you don't want. This is more
applicable if your ginormous 8mb file was part of a commit where you
wanted the rest of the commit.

Chip

-- 
Chip Turner                   cturner@redhat.com
                              Red Hat, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 16 22:06:02 2004

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.