Revert "connected: do not sort input revisions"
This reverts commit f45022dc2f
,
as this is like breakage in the traversal more likely. In a
history with 10 single strand of pearls,
1-->2-->3--...->7-->8-->9-->10
asking "rev-list --unsorted-input 1 10 --not 9 8 7 6 5 4" fails to
paint the bottom 1 uninteresting as the traversal stops, without
completing the propagation of uninteresting bit starting at 4 down
through 3 and 2 to 1.
This commit is contained in:
@ -169,35 +169,4 @@ test_expect_success 'rev-list --count --objects' '
|
||||
test_line_count = $count actual
|
||||
'
|
||||
|
||||
test_expect_success 'rev-list --unsorted-input results in different sorting' '
|
||||
git rev-list --unsorted-input HEAD HEAD~ >first &&
|
||||
git rev-list --unsorted-input HEAD~ HEAD >second &&
|
||||
! test_cmp first second &&
|
||||
sort first >first.sorted &&
|
||||
sort second >second.sorted &&
|
||||
test_cmp first.sorted second.sorted
|
||||
'
|
||||
|
||||
test_expect_success 'rev-list --unsorted-input incompatible with --no-walk' '
|
||||
cat >expect <<-EOF &&
|
||||
fatal: --no-walk is incompatible with --unsorted-input
|
||||
EOF
|
||||
test_must_fail git rev-list --unsorted-input --no-walk HEAD 2>error &&
|
||||
test_cmp expect error &&
|
||||
test_must_fail git rev-list --unsorted-input --no-walk=sorted HEAD 2>error &&
|
||||
test_cmp expect error &&
|
||||
test_must_fail git rev-list --unsorted-input --no-walk=unsorted HEAD 2>error &&
|
||||
test_cmp expect error &&
|
||||
|
||||
cat >expect <<-EOF &&
|
||||
fatal: --unsorted-input is incompatible with --no-walk
|
||||
EOF
|
||||
test_must_fail git rev-list --no-walk --unsorted-input HEAD 2>error &&
|
||||
test_cmp expect error &&
|
||||
test_must_fail git rev-list --no-walk=sorted --unsorted-input HEAD 2>error &&
|
||||
test_cmp expect error &&
|
||||
test_must_fail git rev-list --no-walk=unsorted --unsorted-input HEAD 2>error &&
|
||||
test_cmp expect error
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Reference in New Issue
Block a user