将 SVN 迁移到 Android Studio

问题描述:

我正在将我的 Android 项目从 Eclipse 迁移到 Android Studio.我使用 Subversion 并且想知道如何将我的 SVN 迁移到 Android Studio 中使用的新文件结构而不会丢失我的历史记录.

I'm migrating my Android project from Eclipse to Android Studio. I use Subversion and am wondering how I can migrate my SVN to the new file structure used in Android Studio without losing my history.

感谢您的帮助!

我不知道这两种文件结构的区别.但它会以这种方式尝试:

I don't know the differences of both file structures. But it would try it this way:

  1. 检查您的项目(也许最好使用像 TortoiseSVN 这样的客户端)
  2. 构建新的文件结构(新文件夹)
  3. 提交
  4. 将文件从旧结构移至新结构
  5. 提交(如果只有移动操作,请检查提交对话框!)
  6. 删除不再需要的旧文件夹
  7. 提交

SVN 会识别这些移动操作.您将通过提交对话框中的操作查看它是否有效.如果有删除"/新建"操作出错,则应该只有移动"操作.

SVN will recognize these move operations. You will see if it works by the operations in the commit dialog. If there are "delete"/"new" actions something went wrong there should only be "move" actions.