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>
2019-04-29 09:56:38 -07:00
..
basic filter-repo: add some basic tests, with git-style test-lib.sh 2019-03-12 14:19:38 -07:00
basic-filename filter-repo: add some basic tests, with git-style test-lib.sh 2019-03-12 14:19:38 -07:00
basic-mailmap filter-repo: add mailmap handling 2019-04-26 07:56:03 -07:00
basic-numbers filter-repo: add more path-related testcases 2019-04-29 09:56:37 -07:00
basic-replace filter-repo: add text removal (or replacement) via file of expressions 2019-04-26 07:56:03 -07:00
basic-ten filter-repo: add some basic tests, with git-style test-lib.sh 2019-03-12 14:19:38 -07:00
basic-twenty filter-repo: add some basic tests, with git-style test-lib.sh 2019-03-12 14:19:38 -07:00
degenerate filter-repo: add testcases dealing with topology changes 2019-04-29 09:56:38 -07:00
degenerate-globme filter-repo: add testcases dealing with topology changes 2019-04-29 09:56:38 -07:00
degenerate-keepme filter-repo: add testcases dealing with topology changes 2019-04-29 09:56:38 -07:00
degenerate-moduleA filter-repo: add testcases dealing with topology changes 2019-04-29 09:56:38 -07:00
empty filter-repo: add testcases dealing with commit pruning 2019-04-29 09:56:37 -07:00
empty-keepme filter-repo: add testcases dealing with commit pruning 2019-04-29 09:56:37 -07:00
sample-mailmap filter-repo: add mailmap handling 2019-04-26 07:56:03 -07:00
sample-replace filter-repo: add text removal (or replacement) via file of expressions 2019-04-26 07:56:03 -07:00