完整地复制TFVC存储库(到GIT),并保留工作项链接 [英] Clone a TFVC repository (to GIT) with work item links intact

查看:175
本文介绍了完整地复制TFVC存储库(到GIT),并保留工作项链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将TFVC存储库克隆到Git存储库中,是否有任何工具支持所谓的"id提及"?我想要的是在克隆的Git存储库中的每个提交都包含其链接的工作项的ID提及.

Is there any tool that supports so called "id mentions" when cloning a TFVC repository into a Git repository? What I would like is for each commit in the cloned Git repository to contain id mentions for its linked work items.

Commit: hash... Message: A cloned commit, Related work item(s): #123456

Commit: hash... Message: A cloned commit, Related work item(s): #123456

到目前为止,我已经尝试过git-tf(Microsoft)和git-tfs,从某种意义上说,它们都保持了变更集的历史记录完整,但没有通过ID提及,而是为每次提交到TFS变更集添加了一个标记.然后,我可以进入TFS Web门户并查找更改集,在该更改集中所有工作项都可见,但是此信息将无法在Visual Studio中直接获得.

So far I have tried git-tf (Microsoft) and git-tfs, and in a way they both keep the changeset history intact but not via ID mentions, instead they add a tag for each commit to the TFS changeset. I could then go into TFS web portal and look up the changeset, where all the work items will be visible, but this information would not be available directly inside Visual Studio.

自Visual Studio 2015更新1(?)起,就可以通过ID提及将提交与工作项相关联.此功能已很好地集成到Visual Studio中,并且工作项链接非常像以前在TFVC中工作.另外,当在Visual Studio中查看TFS Git存储库的历史记录时,如果当前提交中有ID提及,则会显示相关的工作项.

Since Visual Studio 2015 update 1(?), it is possible to associate a commit with a work item via id-mentions. This functionality is well integrated into Visual Studio and the work item linking is very much like it used to work in TFVC. Also, when looking at the history in Visual Studio for a TFS Git repository, the related work items are shown if there is an ID mention in the current commit.

推荐答案

不确定,因为我不记得自己编写的代码了,但是它应该与git-tfs和'--export'选项一起使用...

Not sure because I don't remember what I have coded, but it should works with git-tfs and the '--export' option...

这篇关于完整地复制TFVC存储库(到GIT),并保留工作项链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆