简体   繁体   English

git-tfs不会克隆所有更改

[英]git-tfs not cloning all changes

I've been using git-tfs to clone my TFS projects and upload them to git repos in Visual Studio Online. 我一直在使用git-tfs克隆我的TFS项目并将其上传到Visual Studio Online中的git repos。 Most of the projects clone successfully and are ready to go, but several are stopping at very old changesets and complete as if they worked properly. 大多数项目成功克隆并准备就绪,但有些项目在非常旧的变更集停止并完成,就好像它们可以正常工作一样。 No error messages are thrown for most, but one throws a few errors similar to "Changeset ID ### is a merge operation but the parent could not be found." 大多数情况下不会抛出任何错误消息,但是会抛出一些错误,类似于“ Changeset ID ###是合并操作,但找不到父级。” Why would git-tfs randomly stop cloning changes at very old changesets when no error is thrown? 为什么在没有抛出错误的情况下,git-tfs会随机停止在非常老的变更集上克隆变更?

Running git tfs clone with -d shows all of the debug output, and the very end shows GC Countdown: 84 , then it goes into normal cleanup ( git gc ) for the end of the clone. -d运行git tfs clone显示所有调试输出,最后显示GC Countdown: 84 ,然后进入克隆结尾的常规清理( git gc )。 Seems to me that it recognizes there are more commits but it isn't fetching them for some reason. 在我看来,它可以识别出更多的提交,但是由于某种原因它没有获取它们。 Tried running with --resumable --ignore-branches also, same problem. 尝试使用--resumable --ignore-branches运行,同样的问题。

The error usually occurs when a changeset is a merge operation and the source branch of that merge is deleted permanently from TFS. 当变更集是合并操作并且该合并的源分支从TFS中永久删除时,通常会发生该错误。 Refer to this link for details: https://github.com/git-tfs/git-tfs/pull/628 请参阅此链接以获取详细信息: https : //github.com/git-tfs/git-tfs/pull/628

GC Countdown: 84 does not mean that there are commits left. GC倒计时:84并不意味着还有提交。 When you run git-tfs command, it will lists the ID of the changesets that been cloned. 运行git-tfs命令时,它将列出已克隆的变更集的ID。 You can check the history of your original project from Source Control Explorer or via tf history command and then compare with the IDs listed by git-tfs to see if all the changes have been cloned. 您可以从Source Control Explorer或通过tf history命令检查原始项目的历史记录,然后将其与git-tfs列出的ID进行比较,以查看是否已克隆所有更改。

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

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