Is there anyway to import XCode snapshots into a new SVN repository?

吃可爱长大的小学妹 提交于 2020-01-01 07:15:50

问题


Greetings,

I have been working a project in XCode for a while. I have been using xcode snapshots as a rudimentary version control. However, I have decided that it's about time I moved up into a real SCM system, so I plan to create a repository and import my project into SVN.

My question is: Is there anyway to import my snapshots history into SVN so I have a full history of my previous (snapshot) changes in the new SVN project repository I am creating?

Any info would be greatly appreciated.

Thanks.


回答1:


I suppose that by saying snapshot you mean that you stored whole project tree in different folder or created some kind of archive. In this case here are steps you'll need to follow:

  1. Init your repository (with svn admin command)
  2. Import the most earlier snapshot (let's name it s1) into repository
  3. Commit your changes
  4. Change your working copy files to contain next snapshot (s2)
  5. Commit your changes
  6. Repeat steps 4-5 for all snapshots (from s3 to sN)
  7. At the end you will have your whole history of snapshots in your repository

There is also such notion as changeset or diff or patch. In the case when you stored diffs instead of snapshots, workflow will be a little bit different. Instead of just copying snapshot to working copy (on step 4) you will need to apply corresponding patch (diff) to working copy.




回答2:


This answer comes too late for you, but other finding this question my find it useful. I've written a post about exactly this topic: http://cinnamonthoughts.org/2011/03/14/moving-xcode-3-snapshots-to-subversion/



来源:https://stackoverflow.com/questions/2203818/is-there-anyway-to-import-xcode-snapshots-into-a-new-svn-repository

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