Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quarantine a specific subversion revision?

Tags:

svn

I have a revision that has been committed to SVN trunk which I would like to roll back. However, I would like to retain the changes in some fashion such as a branch or even a patch file. Any suggestions?

like image 944
Oleg Barshay Avatar asked Oct 19 '08 23:10

Oleg Barshay


People also ask

How do I revert a specific revision in svn?

Right click on the selected revision(s), then select Context Menu → Revert changes from this revision. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context Menu → Revert to this revision. This will discard all changes after the selected revision.

How do I diff two revisions in svn?

Display the differences between two paths. The ways you can use svn diff are: Use just svn diff'to display local modifications in a working copy. Display the changes made to TARGET s as they are seen in REV between two revisions.

How do you undo a commit in svn?

To undo a specific revision you can use the following command: $ svn merge -c -r3745 . In case you have other edited files in working directory, you can commit only the relevant files. Please note that undoing actually will mean you create a new revision with the negatives changes of last commit.


1 Answers

Reverse-merge (I think that was the term), commit and that's all.

For the "reverse-merge" part - TSVN has this cool feature called "Revert to this revision" (and "Revert changes from this revision"), accessible through the Log dialogue.

The main purpose of a VCS is to keep history of your changes. You could always go back to this particular revision by using "Update to revision..." or by using the aforementioned "shortcuts".

like image 178
Milen A. Radev Avatar answered Oct 18 '22 12:10

Milen A. Radev