[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: Thorsten <tg_at_freigmbh.de>
Date: Thu, 22 Oct 2020 16:31:34 +0200

Hello,

> When I look up svn revert it only talks about removing local edits,
> but what about this:
>
> Working on trunk and committing a few changes, which later turns out
> to be wrong.
> Now I want to set trunk head to be at the revision where the edits
> started out from.

You can use a feature called reverse merge.

First make sure your working copy has no pending changes. -> revert
everything or check out a new copy

If you want to go back to revision 497 use:

|svn merge -r HEAD:497 .|

you can now commit to " sort of reset" the server to the same code as in
version 497, or make more edits before you commit.

https://stackoverflow.com/questions/1930725/svn-reverse-merge
Received on 2020-10-22 16:31:52 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.