Steed
Steed

Reputation: 1300

Preserve history of moved TFS folders in git-tfs

I am going to migrate my project (folder) from TFS to git using git-tfs. The problem is that the folder once was moved in TFS from one place to another. TFS history for the folder shows all changesets from the beginning, but git-tfs clone clones only the changesets, which happened after the move.

Is it possible to clone the old change sets too? Preferably together with the new changesets, but at least maybe to another git repo?

Upd. I've tried some ideas but they all failed:

  1. One could clone from the old folder location. But there is no that location in the current change set.
  2. One could clone from the last change set when older location was present. But git tfs clone has no option to use specific changeset, only quick-clone has.
  3. One could quick-clone the first changeset at the old location (it works) and then fetch the changes. But fetch fails with error "No appropriate mapping exists for ...". I've tried adding old and new tfs remotes to the same repo, but this didn't help.

Upvotes: 0

Views: 948

Answers (2)

Steed
Steed

Reputation: 1300

Finally I tried git-tf instead of git-tfs and it suddenly worked, so the migration problem was solved.

Upvotes: 0

Philippe
Philippe

Reputation: 31147

There is a work in progress already working quite well that support this case.

Just compile it yourself and give it a try!

Upvotes: 1

Related Questions