svn: reload an old revision
I'd like to reload an old revision of 开发者_高级运维my repository. My current revision ist 645 and I'd like to have 642 as my current version. The changes from 642 to 645 are changes in the files and additional files. I use the common method for that:
svn merge -r 645:642 .
This does not work either:
svn merge -r HEAD:642 .
Nothing happens. Still the old reversion. But when I do the following:
svn up -r 642
The local copy works just fine. But i would like to commit it as my current revision. But when I use
svn ci -m "Revert"
It does nothing at all.
You need to merge with HEAD. See this article.
You are close. You did the merge but forgot to commit afterwards.
svn commit -m "Reverted for whatever reason"
Don't forget to have the revision you are reverting from in your local workspace before issuing the revert command.
精彩评论