Tortoise Subversion - undo update

匿名 (未验证) 提交于 2019-12-03 08:46:08

问题:

I have a folder on my machine, but I had deliberly kept out of sync with the main project (I should have branched, but didn't)

I have now gone and updated this folder to the latest version, forgetting that I shouldn't do that.

Is it possible to undo this update, and go back to the state I was in before the update? Or, (as I closed the update window), can I see what files were updated/added?

Thanks

回答1:

Use "Update to Revision" and enter the revision your working copy was at before the update.

If you don't know the exact revision, you can use the log dialog to narrow it down.

And there's a log file which should have a list of all the files that were updated: Settings dialog->Saved Data->Action log: click on the "Show" button.



回答2:

Use "update to revision" feature. See here for details



回答3:

Have you tried the log. Click on the "Show log" option which will show you all of the updates you have made. Right-Click on any one of the revisions you would like to revert to and choose either the "Revert to this Revision" option or any others that suit your needs.

There will be an area at the bottom showing which files were added.



回答4:

I had to explicitly following this sequence:

svn update

(which pulled in lots of recent updates, including those i wasn't ready for in production, damn!)

svn log | less

checked which update I wish to revert to

svn -r REVISION

that did the necessary time travel, into a secure past :-)



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!