src fast-export puts each file in a separate branch
According to the FAQ, the output of fast-export "can be used to jump-start a DVCS repository with the entire existing history intact". My expectation was that, in a simple src repo that had no branching, all the files would be imported into the master branch in Git/Mercurial. Instead, each file is in a separate branch.
Am I missing something, or do you really have to merge N branches together to get a usable result?
Using filenames-git.fi
from the regression test suite:
% src version
src: 1.22
python: 2.7.15
RCS: 5.9.4
platform: darwin
revision: e7978558299ea32e8a2311855e96e810e0eadd05
% git init test
Initialized empty Git repository in /private/tmp/srctest/test/.git/
% cd test
% git fast-import < ../filenames-git.fi
Unpacking objects: 100% (12/12), done.
/usr/local/Cellar/git/2.20.1/libexec/git-core/git-fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects: 5000
Total objects: 12 ( 0 duplicates )
blobs : 4 ( 0 duplicates 1 deltas of 2 attempts)
trees : 4 ( 0 duplicates 0 deltas of 2 attempts)
commits: 4 ( 0 duplicates 0 deltas of 0 attempts)
tags : 0 ( 0 duplicates 0 deltas of 0 attempts)
Total branches: 2 ( 2 loads )
marks: 1024 ( 8 unique )
atoms: 2
Memory total: 2344 KiB
pools: 2110 KiB
objects: 234 KiB
---------------------------------------------------------------------
pack_report: getpagesize() = 4096
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit = 35184372088832
pack_report: pack_used_ctr = 0
pack_report: pack_mmap_calls = 0
pack_report: pack_open_windows = 0 / 0
pack_report: pack_mapped = 0 / 0
---------------------------------------------------------------------
% git branch
testfile1/master
testfile14/master
% git checkout
fatal: You are on a branch yet to be born
% git checkout testfile1/master
Switched to branch 'testfile1/master'
% ls
testfile1