开发者

svn: reload an old revision

开发者 https://www.devze.com 2023-04-13 04:38 出处:网络
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 a

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消