tags:

views:

104

answers:

3

I want to know whether it is possible to commit to a previous version. I want to overwrite the previous version. The situation is like this:

I worked on a file and made important modifications that fixed many issues. I committed the changes and SVN reflected version number 10 of the file. The previous version, i.e., the 9th version was written by another programmer and this version is at present in production. I am asked to upload my version. I want to keep the other programmer's version also. I downloaded his version using FileZilla and kept in another folder. I want to overwrite the 9th version with this safe copy, before I upload my copy.

What is the best approach?

+5  A: 

I would revert your working copy to revision 9, make your changes locally (manually of with diff), then commit. The working copy should then be at revision 11 with both of your changes in place.

theunraveler
+2  A: 

Revision 9 of that file will always be available from the repository. You can always retrieve it again even after you have committed your new revision.

svn up -r9 path/to/the/file
Trevor
+2  A: 

It sounds like you don’t yet understand the fundamentals of Subversion. I encourage you to read the excellent documentation, located here:

http://svnbook.red-bean.com/

Michael Hackner
@Michael: Yes, I don't understand it fully. Specially how to deal with this type of issue. Checking that link.
RPK