问题描述
您好,
我已经在 XCode 中工作了一段时间.我一直在使用 xcode 快照作为基本的版本控制.但是,我已经决定是时候进入真正的 SCM 系统了,所以我计划创建一个存储库并将我的项目导入到 SVN 中.
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.
我的问题是:无论如何,是否可以将我的快照历史记录导入到 SVN 中,以便我在我正在创建的新 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?
任何信息将不胜感激.
谢谢.
推荐答案
我想说 snapshot
的意思是您将整个项目树存储在不同的文件夹中或创建了某种存档.在这种情况下,您需要遵循以下步骤:
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:
- 初始化您的存储库(使用
svn admin
命令) - 将最早的快照(我们将其命名为 s1)导入存储库
- 提交您的更改
- 更改您的工作副本文件以包含下一个快照 (s2)
- 提交您的更改
- 对所有快照(从 s3 到 sN)重复步骤 4-5
- 最后,您的存储库中将拥有完整的快照历史
还有诸如changeset
或diff
或patch
这样的概念.在您存储差异而不是快照的情况下,工作流程会有所不同.您需要将相应的补丁 (diff) 应用到工作副本,而不是仅仅将快照复制到工作副本(在第 4 步中).
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.
这篇关于有没有将 XCode 快照导入新的 SVN 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!