Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip a revision in svn repository

So say I have the three latest revisions of an aspx file: 55, 56 and 57. Revision 56 added a feature that I want to remove, but I also want to have the new features deployed in version 57. Is there any way I can merge version 55 with 57, leaving revision 56 out of the picture?

If it matters, I'm using Tortoise SVN and Visual SVN, but I normally just use Tortoise.

Thanks for any ideas.

like image 204
Albert Avatar asked Jun 10 '10 15:06

Albert


People also ask

How do I delete a specific revision in svn?

Right click on the selected revision, then select Context Menu → Revert to this revision. This will discard all changes after the selected revision. Make a commit.

What does svn revert do?

Reverts any local changes to a file or directory and resolves any conflicted states. svn revert will revert not only the contents of an item in your working copy, but also any property changes.

Can we revert commit in svn?

Note that the svn merge command reverts a commit in the sense of having another commit undoing your changes, but keeping your wrong commit in the history.


1 Answers

If I'm following your question, it sounds like you want r57 minus r56. (i.e. including changes from r55 to r0)

command-line:

svn merge <path_to_repo> . -c -56

Tortoise:
Show Log / Right-click revision 56 and select "Revert changes from this revision"

like image 140
William Leara Avatar answered Sep 21 '22 19:09

William Leara