Skip to content

Instantly share code, notes, and snippets.

@irontoby
Created June 5, 2014 16:48
Show Gist options
  • Save irontoby/2060d6768e73129609e4 to your computer and use it in GitHub Desktop.
Save irontoby/2060d6768e73129609e4 to your computer and use it in GitHub Desktop.
git-tfs output trying to import Main branch
C:\devs\test>git tfs clone -d http://hpsjvltfs01:8080/tfs/DefaultCollection $/MyProject/Main --workspace="c:\w1"
Command run:git tfs clone -d http://hpsjvltfs01:8080/tfs/DefaultCollection $/MyProject/Main --workspace=c:\w1
No authors file used.
git-tfs version 0.19.2.0 (TFS client library 11.0.0.0 (MS)) (64-bit)
git command: Starting process: git init
Initialized empty Git repository in C:/devs/test/Main/.git/
git command time: [00:00:00.1920156] init
workspace path:c:\w1
Fetching from TFS remote 'default'...
info: refs/remotes/tfs/default: Getting changesets from 1 to current ...
Setting up a TFS workspace at c:\w1
C152361 = e3f215c435411304031cb1360e8034e37049c7fc
GC Countdown: 200
Setting up a TFS workspace at c:\w1
get [C152362]$/MyProject/Main/....
<Snip....>
C152362 = 62e41086f052be3c62ded22a397b1ff44397ddce
GC Countdown: 199
Looking for changeset 153544 in git repository...
=> Commit not found!
Looking for root changeset for branch:$/MyProject/Dev/Dev
Looking to find branch '$/MyProject/Dev/Dev' in all TFS branches...
Looking for all branches...
Found parent branch : $/MyProject/QA/QA
Merge: `Encoding, Branch` C152363 `$/MyProject/Dev/Dev` Source `Merge` C152362 `
$/MyProject/Main`
Cleaning...
Sep.Git.Tfs.Core.GitTfsException: error: a problem occured when trying to clone
the repository. Try to solve the problem described below.
In any case, after, try to continue using command `git tfs fetch`
---> Sep.Git.Tfs.Core.GitTfsException: An unexpected error occured when trying
to find the root changeset.
Failed to find root changeset for $/MyProject/Dev/Dev branch in $/MyProject/QA/Q
A branch
at Sep.Git.Tfs.VsCommon.TfsHelperVs2010Base.GetRelevantChangesetBasedOnChange
Type(IEnumerable`1 merges, String tfsPathParentBranch, String tfsPathBranchToCre
ate, String& renameFromBranch) in c:\devs\external\git-tfs\GitTfs.VsCommon\TfsHe
lper.PostVs2010.Common.cs:line 264
at Sep.Git.Tfs.VsCommon.TfsHelperVs2010Base.GetRootChangesetForBranch(IList`1
rootBranches, String tfsPathBranchToCreate, Int32 lastChangesetIdToCheck, Strin
g tfsPathParentBranch) in c:\devs\external\git-tfs\GitTfs.VsCommon\TfsHelper.Pos
tVs2010.Common.cs:line 133
at Sep.Git.Tfs.VsCommon.TfsHelperVs2010Base.GetRootChangesetForBranch(String
tfsPathBranchToCreate, Int32 lastChangesetIdToCheck, String tfsPathParentBranch)
in c:\devs\external\git-tfs\GitTfs.VsCommon\TfsHelper.PostVs2010.Common.cs:line
76
at Sep.Git.Tfs.Core.GitTfsRemote.InitTfsRemoteOfChangeset(IBranchObject tfsBr
anch, Int32 parentChangesetId) in c:\devs\external\git-tfs\GitTfs\Core\GitTfsRem
ote.cs:line 547
at Sep.Git.Tfs.Core.GitTfsRemote.FindOrInitTfsRemoteOfChangeset(Int32 parentC
hangesetId, Boolean mergeChangeset, String& omittedParentBranch) in c:\devs\exte
rnal\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 532
at Sep.Git.Tfs.Core.GitTfsRemote.FindRemoteAndFetch(Int32 parentChangesetId,
Boolean stopOnFailMergeCommit, Boolean mergeChangeset, String& omittedParentBran
ch) in c:\devs\external\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 491
at Sep.Git.Tfs.Core.GitTfsRemote.FindMergedRemoteAndFetch(Int32 parentChanges
etId, Boolean stopOnFailMergeCommit, String& omittedParentBranch) in c:\devs\ext
ernal\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 486
at Sep.Git.Tfs.Core.GitTfsRemote.ProcessMergeChangeset(ITfsChangeset changese
t, Boolean stopOnFailMergeCommit, String& parentCommit) in c:\devs\external\git-
tfs\GitTfs\Core\GitTfsRemote.cs:line 378
at Sep.Git.Tfs.Core.GitTfsRemote.FetchWithMerge(Int64 mergeChangesetId, Boole
an stopOnFailMergeCommit, Int32 lastChangesetIdToFetch, String[] parentCommitsHa
shes) in c:\devs\external\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 334
at Sep.Git.Tfs.Core.GitTfsRemote.FetchWithMerge(Int64 mergeChangesetId, Boole
an stopOnFailMergeCommit, String[] parentCommitsHashes) in c:\devs\external\git-
tfs\GitTfs\Core\GitTfsRemote.cs:line 314
at Sep.Git.Tfs.Core.GitTfsRemote.Fetch(Boolean stopOnFailMergeCommit) in c:\d
evs\external\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 309
at Sep.Git.Tfs.Commands.Fetch.DoFetch(IGitTfsRemote remote, Boolean stopOnFai
lMergeCommit) in c:\devs\external\git-tfs\GitTfs\Commands\Fetch.cs:line 170
at Sep.Git.Tfs.Commands.Fetch.FetchRemote(Boolean stopOnFailMergeCommit, IGit
TfsRemote remote) in c:\devs\external\git-tfs\GitTfs\Commands\Fetch.cs:line 99
at Sep.Git.Tfs.Commands.Fetch.Run(Boolean stopOnFailMergeCommit, String[] arg
s) in c:\devs\external\git-tfs\GitTfs\Commands\Fetch.cs:line 91
at Sep.Git.Tfs.Commands.Fetch.Run(Boolean stopOnFailMergeCommit) in c:\devs\e
xternal\git-tfs\GitTfs\Commands\Fetch.cs:line 76
at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, St
ring gitRepositoryPath) in c:\devs\external\git-tfs\GitTfs\Commands\Clone.cs:lin
e 119
--- End of inner exception stack trace ---
at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 ar
gs) in c:\devs\external\git-tfs\GitTfs\Util\GitTfsCommandRunner.cs:line 36
at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs) in c:
\devs\external\git-tfs\GitTfs\GitTfs.cs:line 69
at Sep.Git.Tfs.GitTfs.Run(IList`1 args) in c:\devs\external\git-tfs\GitTfs\Gi
tTfs.cs:line 50
at Sep.Git.Tfs.Program.MainCore(String[] args) in c:\devs\external\git-tfs\Gi
tTfs\Program.cs:line 34
at Sep.Git.Tfs.Program.Main(String[] args) in c:\devs\external\git-tfs\GitTfs
\Program.cs:line 22
error: a problem occured when trying to clone the repository. Try to solve the p
roblem described below.
In any case, after, try to continue using command `git tfs fetch`
Sep.Git.Tfs.Core.GitTfsException: An unexpected error occured when trying to fin
d the root changeset.
Failed to find root changeset for $/MyProject/Dev/Dev branch in $/MyProject/QA/Q
A branch
at Sep.Git.Tfs.VsCommon.TfsHelperVs2010Base.GetRelevantChangesetBasedOnChange
Type(IEnumerable`1 merges, String tfsPathParentBranch, String tfsPathBranchToCre
ate, String& renameFromBranch) in c:\devs\external\git-tfs\GitTfs.VsCommon\TfsHe
lper.PostVs2010.Common.cs:line 264
at Sep.Git.Tfs.VsCommon.TfsHelperVs2010Base.GetRootChangesetForBranch(IList`1
rootBranches, String tfsPathBranchToCreate, Int32 lastChangesetIdToCheck, Strin
g tfsPathParentBranch) in c:\devs\external\git-tfs\GitTfs.VsCommon\TfsHelper.Pos
tVs2010.Common.cs:line 133
at Sep.Git.Tfs.VsCommon.TfsHelperVs2010Base.GetRootChangesetForBranch(String
tfsPathBranchToCreate, Int32 lastChangesetIdToCheck, String tfsPathParentBranch)
in c:\devs\external\git-tfs\GitTfs.VsCommon\TfsHelper.PostVs2010.Common.cs:line
76
at Sep.Git.Tfs.Core.GitTfsRemote.InitTfsRemoteOfChangeset(IBranchObject tfsBr
anch, Int32 parentChangesetId) in c:\devs\external\git-tfs\GitTfs\Core\GitTfsRem
ote.cs:line 547
at Sep.Git.Tfs.Core.GitTfsRemote.FindOrInitTfsRemoteOfChangeset(Int32 parentC
hangesetId, Boolean mergeChangeset, String& omittedParentBranch) in c:\devs\exte
rnal\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 532
at Sep.Git.Tfs.Core.GitTfsRemote.FindRemoteAndFetch(Int32 parentChangesetId,
Boolean stopOnFailMergeCommit, Boolean mergeChangeset, String& omittedParentBran
ch) in c:\devs\external\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 491
at Sep.Git.Tfs.Core.GitTfsRemote.FindMergedRemoteAndFetch(Int32 parentChanges
etId, Boolean stopOnFailMergeCommit, String& omittedParentBranch) in c:\devs\ext
ernal\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 486
at Sep.Git.Tfs.Core.GitTfsRemote.ProcessMergeChangeset(ITfsChangeset changese
t, Boolean stopOnFailMergeCommit, String& parentCommit) in c:\devs\external\git-
tfs\GitTfs\Core\GitTfsRemote.cs:line 378
at Sep.Git.Tfs.Core.GitTfsRemote.FetchWithMerge(Int64 mergeChangesetId, Boole
an stopOnFailMergeCommit, Int32 lastChangesetIdToFetch, String[] parentCommitsHa
shes) in c:\devs\external\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 334
at Sep.Git.Tfs.Core.GitTfsRemote.FetchWithMerge(Int64 mergeChangesetId, Boole
an stopOnFailMergeCommit, String[] parentCommitsHashes) in c:\devs\external\git-
tfs\GitTfs\Core\GitTfsRemote.cs:line 314
at Sep.Git.Tfs.Core.GitTfsRemote.Fetch(Boolean stopOnFailMergeCommit) in c:\d
evs\external\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 309
at Sep.Git.Tfs.Commands.Fetch.DoFetch(IGitTfsRemote remote, Boolean stopOnFai
lMergeCommit) in c:\devs\external\git-tfs\GitTfs\Commands\Fetch.cs:line 170
at Sep.Git.Tfs.Commands.Fetch.FetchRemote(Boolean stopOnFailMergeCommit, IGit
TfsRemote remote) in c:\devs\external\git-tfs\GitTfs\Commands\Fetch.cs:line 99
at Sep.Git.Tfs.Commands.Fetch.Run(Boolean stopOnFailMergeCommit, String[] arg
s) in c:\devs\external\git-tfs\GitTfs\Commands\Fetch.cs:line 91
at Sep.Git.Tfs.Commands.Fetch.Run(Boolean stopOnFailMergeCommit) in c:\devs\e
xternal\git-tfs\GitTfs\Commands\Fetch.cs:line 76
at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, St
ring gitRepositoryPath) in c:\devs\external\git-tfs\GitTfs\Commands\Clone.cs:lin
e 119
An unexpected error occured when trying to find the root changeset.
Failed to find root changeset for $/MyProject/Dev/Dev branch in $/MyProject/QA/QA branch
C:\devs\test>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment