Multiple files missed after git-tfs clone

735 views
Skip to first unread message

goyoc...@gmail.com

unread,
Nov 13, 2014, 11:00:03 AM11/13/14
to git-t...@googlegroups.com
Hi.
I've made a git tfs clone from my TFS repository to a new git repository on my computer with the following sentence:
git tfs clone --export --export-work-item-mapping="c:\tfs\proj.txt" https://tfs.domain.com/tfs/Proj $/Proj/web web

Everything seems to be ok: every folder at Proj was downloaded, it has the info of the changesets and the related tasks... but when openning the project in eclise I've noticed that some classes are missed. They are files in different folders and this is "known" by git-tfs when I run git-tfs verify (it responds with the multiple files "Only in TFS").

git-tfs pull or git-tfs fetch has no effect. What could I do to retrieve all these files?

I'm using the following versions:
git-tfs version 0.20.0.0 (TFS client library 10.0.0.0 (MS)) (64-bit)
git version 1.9.4.msysgit.2 
 
The classes are stored in a Visual Studio TFS 2013 server

Thanks. Kind regards.

Matt Burke

unread,
Nov 19, 2014, 6:23:50 AM11/19/14
to git-t...@googlegroups.com
Which files are missing? Are they all in a particular directory? Or
were they all added/moved to $/Proj/web in a single changeset?
> --
> You received this message because you are subscribed to the Google Groups
> "git-tfs-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-tfs-dev...@googlegroups.com.
> To post to this group, send email to git-t...@googlegroups.com.
> Visit this group at http://groups.google.com/group/git-tfs-dev.
> For more options, visit https://groups.google.com/d/optout.

Goyo

unread,
Nov 19, 2014, 7:13:01 AM11/19/14
to git-t...@googlegroups.com
Hi. 
Thanks, Matt, for your reply,

There're more 20 files in different folders/packages, which have been committed in TFS in different changesets. In fact, each one of them should've been different commits made in their history.



You received this message because you are subscribed to a topic in the Google Groups "git-tfs-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/git-tfs-dev/CDlaQIMsZuQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to git-tfs-dev...@googlegroups.com.

Matt Burke

unread,
Nov 19, 2014, 7:22:23 AM11/19/14
to git-t...@googlegroups.com
Interesting. I'm not sure why git-tfs left them out. Can you look
through the history for one of the files to see if there's something
unique about it? Maybe, were they originally added to a folder outside
of $/Proj/web and later moved or branched in? Were they every deleted
and then undeleted?

Goyo

unread,
Nov 19, 2014, 7:44:41 AM11/19/14
to git-t...@googlegroups.com
Looking at the history of one of these files I can see when it was added (directly, without merge) and a later edit. 

Imágenes integradas 1

There's a changeset in TFS which couldn't be clonned to git because it has merged changes of a branch that wasn't clonned. This changeset has some of the missing files, but they were on another project that doesn't exist anymore.

Anyway, as you can see in the capture, the file exists in TFS and it was added directly (not from a merge)

Is there any command to retrieve any file and its history (if it's possible) after making the clone?


Matt Burke

unread,
Nov 20, 2014, 2:49:28 PM11/20/14
to git-t...@googlegroups.com
`git whatchanged path/to/file.cs` should get the history. If you are looking at a git commit, `git show  <commitid>` will show the commit summary (including a `git-tfs-id` line that identifies the corresponding TFS changeset) and the changes that the commit made.

"a changeset in TFS which couldn't be cloned to git" sounds like a bug in git-tfs. Can you open an issue on https://github.com/git-tfs/git-tfs and recap the problem there?

rammi...@gmail.com

unread,
Jul 7, 2015, 6:07:44 AM7/7/15
to git-t...@googlegroups.com, goyoc...@gmail.com
Hi Goyo

I am getting the same error. 
Did u get a solution?

Philippe Miossec

unread,
Jul 7, 2015, 6:22:20 AM7/7/15
to git-t...@googlegroups.com, rammi...@gmail.com, goyoc...@gmail.com
Build your version of the `master` branch of the git-tfs repository or wait for the next version that should be released this week...
Reply all
Reply to author
Forward
0 new messages