Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to revert local code to previous revision svn

I would like to revert only the local code to previous versions.

For extra points, what i would like to do is to revert a folder to a previous version (only locally) and generate a file of differences from the version after it.

e.g. say I have version 100. I want version 99 and a diff between that and 100, then 98 and 99 etc.

like image 321
Fantastic Mr Fox Avatar asked Jan 09 '13 23:01

Fantastic Mr Fox


People also ask

What does Revert command do in svn?

svn revert will revert not only the contents of an item in your working copy, but also any property changes. Finally, you can use it to undo any scheduling operations that you may have performed (e.g., files scheduled for addition or deletion can be “unscheduled”).

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.

How do you Uncommit changes 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

svn update -r 99
svn diff -r 100
like image 186
pfnuesel Avatar answered Oct 26 '22 22:10

pfnuesel