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

Re: Undo changes to a tag

From: Bruce Elrick <bruce_at_elrick.ca>
Date: 2004-02-10 04:29:48 CET


Though...hmmm. In revision 19 http://localhost/svn/tags/projectX-0.9
didn't exist. It was the copy to create it that bumped the repos rev to
20. Then changes to http://localhost/svn/tags/projectX-0.9 happened in
some revisions in the range 21 to 31.

I had thought along the line you suggest, but thought it would be:
  cd ~
  mkdir fixtag
  cd fixtag
  svn checkout http://localhost/svn/tags/projectX-0.9 .
  svn merge -r 31:20 http://localhost/svn/tags/projectX-0.9 .
  svn commit -m "Revert tag back to revision 20 state"

I've done the above up to the merge (i.e. haven't commited) and find
that svn diff shows:
  $ svn diff -r 20
Index: file1
Index: file2
Index: file3
Index: file4
Index: file5
Index: file6
Index: file7

Where those are the seven files that changed in revisions 21-31, but I
see it sees no differences between the "reverted" wc and repos rev 20.
So it seems that is correct, but I am unsure enough not to commit until
someone confirms.

You recipe below gives:
svn: REPORT request failed on '/svn/!svn/vcc/default'
svn_repos_dir_delta: invalid editor anchoring; at least one of the input
paths is not a directory and there was no source entry

I assume that is because http://localhost/svn/tags/projectX-0.9 did not
exist at revision 19.

Thanks for such a quick response, by the way.


Francois Beausoleil wrote:

> On Mon, 09 Feb 2004 19:37:24 -0700, "Bruce Elrick" <bruce@elrick.ca>
> said:
> [snip]
>>cd ~
>>mkdir fixtrunk
>>cd fixtrunk
>>svn checkout http://localhost/svn/trunk/projectX .
>>svn merge -r 20:31 http://localhost/svn/tags/projectX-0.9 .
>>svn commit -m \
>> "Merge /tags/projectX-0.9 between rev 20 & 31 into /trunk/projectX"
> [snip]
> Just do a reverse merge:
> cd ~
> mkdir fixtag
> cd fixtag
> svn checkout http://localhost/svn/tags/projectX-0.9 .
> svn merge -r 20:19 http://localhost/svn/tags/projectX-0.9 .
> Notice the order of the revisions. We're applying the changes in
> reverse, in effect reverting the change. The subsequent commit will
> bring back the tag to it's previous state.
> Hope that helps !
> François
> Developer of Java Gui Builder
> http://jgb.sourceforge.net/

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 10 04:30:27 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.