Emil G
Emil G

Reputation: 1290

Clone a TFVC repository (to GIT) with work item links intact

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

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.

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.

Upvotes: 0

Views: 1120

Answers (1)

Philippe
Philippe

Reputation: 31147

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

Upvotes: 1

Related Questions