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

Question about undoing a commit

From: Art Haas <ahaas_at_airmail.net>
Date: 2003-01-12 18:19:10 CET


I found a scenario that I can't figure out the right way out of. If a
commit to the repository takes removes the branch you are working in,
is there an "undo" command that can be issued to revert the commit?

Specifically, here's what I saw happen. The trunk got deleted because
of a typo in a command that was supposed to only remove a tag. So, instead
of just deleteing the tag (which worked perfectly), the trunk also got
wiped out. Now, for my working copy that was tracking the trunk, things
wouldn't work. I went looking for was a command to basically restore
the repository to the revision just before the trunk was gone. I
couldn't find one, so the work around was to dump the repository without
the last bad revision included in the dump, create a new repository,
load the old into the new, then rename repsitories so that things were
as they were before the erroneous commit. After that work moves on again
smoothly. While the trunk was missing, trying to issue svn command from
my working copy was hit-or-miss, with more misses than hits.

I could not see how to remove the bad commit with a "merge" command,
or using "svnadmin rmtxns". A mailing list search brought out a thread
about a "rollback" command that was added and removed, so I'm asking
the mailing list now.

So, just what would you do to fix the repository if someone did this ...

$ svn rm http://svn.collab.net/repos/svn/trunk -m "Removing bad tag ..."

Thanks in advance.

Art Haas

They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 12 18:19:55 2003

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

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