diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-02-11 19:45:56 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-02-11 19:45:56 -0500 |
commit | bdf1c06dc17bdd6d54602544235aa3482ab67c9b (patch) | |
tree | 05cea10bd98334d02a0af812a858ef5039de61f4 /t/t9300-fast-import.sh | |
parent | cc46a74398e6a542d61d8fa0b197b7dedcd7f301 (diff) | |
download | git-bdf1c06dc17bdd6d54602544235aa3482ab67c9b.tar.gz |
fast-import: Hide the pack boundary commits by default.
Most users don't need the pack boundary information that fast-import
was printing to standard output, especially if they were calling
it with --quiet.
Those users who do want this information probably want it captured
so they can go back and use it to repack the imported repository.
So dumping the boundary commits to a log file makes more sense then
printing them to standard output.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 't/t9300-fast-import.sh')
-rwxr-xr-x | t/t9300-fast-import.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 357a8724dd..8d28211294 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -407,4 +407,30 @@ test_expect_success \ 'git-cat-file blob H:h/e/l/lo >actual && diff -u expect actual' +### +### series I +### + +cat >input <<INPUT_END +commit refs/heads/export-boundary +committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE +data <<COMMIT +we have a border. its only 40 characters wide. +COMMIT + +from refs/heads/branch + +INPUT_END +test_expect_success \ + 'I: export-pack-edges' \ + 'git-fast-import --export-pack-edges=edges.list <input' + +cat >expect <<EOF +.git/objects/pack/pack-.pack: `git-rev-parse --verify export-boundary` +EOF +test_expect_success \ + 'I: verify edge list' \ + 'sed -e s/pack-.*pack/pack-.pack/ edges.list >actual && + diff -u expect actual' + test_done |