Tortoise SVN tree conflict with myself

蓝咒 提交于 2019-12-01 21:32:55
  1. Sounds like maybe you moved the file using the Windows Explorer "Move" command rather than the Tortoise "Move" command. The former just moves the file in the filesystem without updating the subversion tree (removing the old file from version control and linking the old file's history to the new one).

  2. Always use the TortoiseSVN "Move" command, or if you want a to move the file without history, then copy the file using Windows Explorer, add the new version with Tortoise, and then delete the old version with Tortoise.

  3. You can right-click on the parent folder of the old file, choose "Check for Modifications," and then delete the file marked as missing from version control.

Sounds like you committed the file, but not the directories it was moved to/from. You need to commit the directories too.

I got into a tree conflict by r-clicking on folder, selecting 'rename', and using "newpath\to\folder" as a parameter. After many rounds of failed cleanup commands and some other stuff I finally restored sanity by:

  1. open new clean checkout into a different folder
  2. svn deleting and committing the broken 'newpath\to\folder' from clean checkout
  3. select 'oldpath\folder' r-click drag and svn move to new location
  4. immediately commit change with no other operations in the middle
  5. go to broken checkin 'oldpath\folder' and manually copy files which were dropped or left behind to 'newpath\to\folder'
  6. add manually copied files as if they were new.

The seamless history chain is broken for the manually updated files, but at least I can continue work now.

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