Svn commits changes to an earlier version

It should be simple, but for some reason I cannot understand:

I updated to the next version, for example, the version 100 (HEAD - 101), for example svn up -r 100. Then I made various changes, and now I want the changed files to be checked as revision 102 (just so that I can go back to 101 if necessary). How should I do it? If I just do svn commit, I get an "obsolete" error. I can not do svn upeither to fix an obsolete problem, because I do not want any changes to HEAD (101) to be returned ...

+3
source share
2 answers

Save the modified files to a temporary folder. Rename the local repository for backup. Create a new local repository. Paste the code back into the files copied to the temp folder. Commit.

You might want to make KDiff to confirm that all changes are correct before committing.

Hope this helps this issue.

+3
source

To undo changes to a previous commit, you should use svn merge, not svn up:

Instead svn up -r100, check out the HEAD revision and dosvn merge -c -101 .

This results in the same content in your local files, but now subversion will no longer attempt to reapply changes to version 101 before allowing you to commit.

See also svn revocation guide .

+2
source