简体   繁体   English

如何将git repo迁移到AccuRev

[英]how to migrate git repo to AccuRev

I need to migrate git repo to AccuRev and I never used AccuRev before no idea how to do it. 我需要将git repo迁移到AccuRev,并且在不知道如何执行之前从未使用过AccuRev。 I searched in AccuRev and didn't find any documents as such. 我在AccuRev中搜索,却没有找到任何文档。 I do see posts on migrating from other SVN to Git but not from git to AccuRev. 我确实看到了有关从其他SVN迁移到Git而不是从git迁移到AccuRev的帖子。 Please let me know is there any documentation available for this. 请让我知道是否有任何可用的文档。 Thanks. 谢谢。

There are two approaches. 有两种方法。 One would be to continue to use git and tie it together with GitCentric an AccuRev product. 一种是继续使用git并将其与AccuRev产品GitCentric绑定在一起。

The other approach is to pull out of git the oldest content you want and the import it into AccuRev. 另一种方法是从git中提取所需的最旧内容,并将其导入AccuRev。 Repeat for the next oldest content until you have everything you need. 重复下一个最旧的内容,直到拥有所需的一切。 Details below. 详细信息如下。

  1. Make a workspace off of the stream you are importing to 从要导入的流中腾出一个工作空间
  2. FIRST BASELINE 第一基准
  3. Extract Baseline1 from the git and copy into workspace 从git中提取Baseline1并复制到工作区中
  4. accurev add -x 累加-x
  5. accurev promote -d Accurev促进-d
  6. Make the Baseline1 snapshot 制作Baseline1快照
  7. ALL SUBSEQUENT BASELINES 所有后续基准
  8. Delete the contents of the workspace 删除工作区的内容
  9. Extract Baseline2 from git and copy into workspace 从git中提取Baseline2并复制到工作区中
  10. accurev add -x (adds any new files added between Baseline1 and Baseline2) accurev add -x(添加在Baseline1和Baseline2之间添加的所有新文件)
  11. accurev stat -m -O -fl > /tmp/modified.txt (this will find all modified files and look for ones with older timestamps as well) accrev stat -m -O -fl> /tmp/modified.txt(这将查找所有修改的文件,并查找带有较旧时间戳记的文件)
  12. accurev keep -c "" -l /tmp/modified.txt accurev keep -c“” -l /tmp/modified.txt
  13. accurev stat -M -fl > /tmp/missing.txt (this will find all missing files...removed between baselines) accrev stat -M -fl> /tmp/missing.txt(这将找到所有丢失的文件...已在基线之间删除)
  14. accurev defunct -l /tmp/missing.txt Accurev已终止-l /tmp/missing.txt
  15. accurev promote –d 准确促进–d
  16. accurev update 准确更新
  17. Make the Baseline2 snapshot 制作Baseline2快照
  18. Rinse-lather-repeat for ALL SUBSEQUENT BASELINES 所有后续基线的冲洗泡沫重复

Dave 戴夫

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM