You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git-filter-repo/t/t9390
Elijah Newren 5ba62ba4e8 filter-repo: add testcases dealing with topology changes
Pruning of commits which become empty can result in a variety of
topology changes: a merge may have lost all its ancestors corresponding
to one of (or more) of its parents, a merge may end up merging a commit
with itself, or a merge may end up merging a commit with its own
ancestor.  Merging a commit with itself makes no sense, so we'd rather
prune down to one parent and hopefully prune the merge commit, but we do
need to worry about whether the are changes in the commit and whether
the original merge commit also merged something with itself.  We have
similar cases for dealing with a merge of some commit with its own
ancestor: if the original topology did the same, or the merge commit has
additional file changes, then we cannot remove the commit.  But,
otherwise, the commit can be pruned.

Add testcases covering the variety of changes that can occur to make
sure we get them right.

Signed-off-by: Elijah Newren <newren@gmail.com>
6 years ago
..
basic filter-repo: add some basic tests, with git-style test-lib.sh 6 years ago
basic-filename filter-repo: add some basic tests, with git-style test-lib.sh 6 years ago
basic-mailmap filter-repo: add mailmap handling 6 years ago
basic-numbers filter-repo: add more path-related testcases 6 years ago
basic-replace filter-repo: add text removal (or replacement) via file of expressions 6 years ago
basic-ten filter-repo: add some basic tests, with git-style test-lib.sh 6 years ago
basic-twenty filter-repo: add some basic tests, with git-style test-lib.sh 6 years ago
degenerate filter-repo: add testcases dealing with topology changes 6 years ago
degenerate-globme filter-repo: add testcases dealing with topology changes 6 years ago
degenerate-keepme filter-repo: add testcases dealing with topology changes 6 years ago
degenerate-moduleA filter-repo: add testcases dealing with topology changes 6 years ago
empty filter-repo: add testcases dealing with commit pruning 6 years ago
empty-keepme filter-repo: add testcases dealing with commit pruning 6 years ago
sample-mailmap filter-repo: add mailmap handling 6 years ago
sample-replace filter-repo: add text removal (or replacement) via file of expressions 6 years ago