Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN - how do I commit previous version back into svn?

Tags:

svn

I am in version 100 svn co -r92 http://www.projectname.svn/trunk projectname seems to work but how do I get this v92 version committed? If I do an svn up I get conflicts If I do svn commit it won't work

Any idea's I'm lost here

like image 417
dccrowley Avatar asked Feb 24 '11 12:02

dccrowley


People also ask

How do I revert back to svn?

Revert a File to a Specified RevisionRight-click a file in the Current Folder browser and select Source Control > Revert using SVN. In the Revert Files dialog box, choose a revision to revert to. Select a revision to view information about the change such as the author, date, and log message. Click Revert.

Can we revert commit in svn?

It is impossible to "uncommit" a revision, but you can revert your working copy to version 1943 and commit that as version 1945. The versions 1943 and 1945 will be identical, effectively reverting the changes.

What is svn revert option?

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”).


1 Answers

svn up -rHEAD           # be sure you're updated with the latest HEAD
svn merge -rHEAD:92 .   # reverse-merge back to revision 92
svn commit              # commit
like image 182
orip Avatar answered Sep 27 '22 21:09

orip