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

Re: How to revert trunk to an earlier revision?

From: Nathan Hartman <hartman.nathan_at_gmail.com>
Date: Thu, 22 Oct 2020 14:25:25 -0400

On Thu, Oct 22, 2020 at 10:25 AM Bo Berglund <bo.berglund_at_gmail.com> wrote:
> If I update my wc to that rev I get the state I want but now I cann
> not commit anymore...
>
> So how is this done? (I assume it is possible and if done via svn it
> should also be reversible).

It is reversible in the sense that no information is ever lost or
removed from the repository.

Suppose you're at revision 515 and to use Thorsten's example you want
to "go back" to revision 497, after running:

svn merge -r HEAD:497 .

(followed by commit)

revisions 498 through 515 are still in the repository and you can
always access them later.

See "Undoing Changes" in Chapter 4 of the Subversion Book:

http://svnbook.red-bean.com/nightly/en/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.undo

Nathan
Received on 2020-10-22 20:25:46 CEST

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.