开发者

How can I sync a changed SVN export back into the repository?

开发者 https://www.devze.com 2023-01-28 05:28 出处:网络
An export of the repo was done, and then altered - files changed, added, and removed. If this was mercurial for example, I could delete the entire checkout, paste the export in, hit commit, and it wou

An export of the repo was done, and then altered - files changed, added, and removed. If this was mercurial for example, I could delete the entire checkout, paste the export in, hit commit, and it would work out the differences. However, SVN has all those .svn folders around, so that approach won't work. I hit t开发者_如何学Chis problem quite frequently (migrating old websites) and resolving it manually is tedious and error-prone. Is there a quick way to do this?


  • Make a new checkout
  • Do a folder diff to see which files were removed and delete those in SVN
  • replace files in the checkout with the files in the export
  • merge
  • commit
0

精彩评论

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