You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kenneth Porter <sh...@sewingwitch.com> on 2004/07/21 02:29:37 UTC

Undoing last commit

Not quite grasping how the vendor drop thing was supposed to work, I 
committed a new copy of a vendor drop instead of a delta from the previous 
version, bloating my repository by the size of the entire drop. I'd now 
like to remove that, but I think if I just delete that tag, it leaves the 
storage consumed. Correct? If so, is there some way to undo the commit and 
release the storage? (I haven't committed anything since my error.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Undoing last commit

Posted by Keith Smith <ke...@pharos.co.nz>.
On Wed, 2004-07-21 at 14:29, Kenneth Porter wrote:
> Not quite grasping how the vendor drop thing was supposed to work, I 
> committed a new copy of a vendor drop instead of a delta from the previous 
> version, bloating my repository by the size of the entire drop. I'd now 
> like to remove that, but I think if I just delete that tag, it leaves the 
> storage consumed. Correct? If so, is there some way to undo the commit and 
> release the storage? (I haven't committed anything since my error.)

You can't obliterate the unwanted revision from the existing repository.

I would dump all revisions up to the culprit, and then load them into a
new repository.  Look up 'svnadmin dump' and 'svnadmin load' in the
book.  You could even follow it's saucy suggestion for avoiding
temporary storage.

Regards
Keith


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Undoing last commit

Posted by Steve Williams <st...@kromestudios.com>.
If I'm correct, one of the principles of Subversion is that no data ever
gets destroyed.  So, to make that commit go away, you would probably have to
do something along the lines of:

1. Dump your current repository to a dumpfile.
2. Backup your current repository in case something goes wrong.
3. Edit the dumpfile, removing the last revision.
4. Re-create the repository using 'svnadmin create'.
5. Load the edited dumpfile.

Someone more knowledgable than myself may have a better solution.

Sly

> Not quite grasping how the vendor drop thing was supposed to work, I
> committed a new copy of a vendor drop instead of a delta from the previous
> version, bloating my repository by the size of the entire drop. I'd now
> like to remove that, but I think if I just delete that tag, it leaves the
> storage consumed. Correct? If so, is there some way to undo the commit and
> release the storage? (I haven't committed anything since my error.)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org