Reverting single file in SVN to a particular revision
I've accidentally commit corrupted file (long story... ;-) into subversion repository, so I would like to revert to a previous version - but only this one particular file.
My file (l6208.lib) had been corrupted in version 309 (revision 308 was the last good one), so I type:
svn merge -c -309 l6208.lib
please note minus sign before 309. This mean apply differences between 309 and 308. You can also type:
svn merge -c -r 309:308 l6208.lib
Now it's time to commit recovered file.
svn ci l6208.lib -m "Reverted last revision"
I don't know if it is best method, but it works for me.
Kommentare
Bitte melden Sie sich Logan oder registrieren Sie sich um kommentieren zu können.