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

Re: Rolling back a delete

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-09-09 20:08:25 CEST

On Thu, 2004-09-09 at 12:48, pkahn@connected.com wrote:
> I was working in my test repository and I just deleted tags and all
> beneath it. I had about 50 or 60 tags there each relating to about
> 1gb of source. I'd like to roll back the change, but the red bean
> book suggests using merge. Alas, merge seems to require a working
> path. I don't want to download all that source.
>
>
>
> Is there another means of rolling back a change that doesn't require a
> working directory?

Well, in your particular case, you could do something like

(Assuming HEAD is currently revision N, which is the revision in which
you deleted all the tags:)

$ svn rm URL-to-tags-dirs
Committed revision N+1.

$ svn cp -r N-1 URL-to-tags-dir URL-to-tags-dir
Committed revision N+2.

... and now revisions N+2 and N-1 will look the same.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 9 20:10:26 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.