git-filter-repo/t
Elijah Newren 88c1269d5a filter-repo: ensure branches are updated as we go
When we prune a commit for being empty, there is no update to the branch
associated with the commit in the fast-import stream.  If the parent
commit had been associated with a different branch, then the branch
associated with the pruned commit would not be updated without
additional measures.  In the past, we resolved this by recording that
the branch needed an update in _seen_refs.  While this works, it is a
bit more complicated than just issuing an immediate Reset.  Also, note
that we need to avoid calling callbacks on that Reset because those
could rename branches (again, if the commit-callback already renamed
once) causing us to not update the intended branch.

There was actually one testcase where the old method didn't work: when a
branch was pruned away to nothing.  A testcase accidentally encoded the
wrong behavior, hiding this problem.  Fix the testcase to check for
correct behavior.

Signed-off-by: Elijah Newren <newren@gmail.com>
2019-06-22 22:32:04 -06:00
..
t9390 filter-repo: allow users to adjust pruning of empty & degenerate commits 2019-05-11 13:01:19 -07:00
t9391 filter-repo: ensure branches are updated as we go 2019-06-22 22:32:04 -06:00
run_coverage filter-repo (python3): convert run_coverage 2019-05-08 08:57:51 -07:00
t9390-filter-repo.sh filter-repo: ensure branches are updated as we go 2019-06-22 22:32:04 -06:00
t9391-filter-repo-lib-usage.sh filter-repo (python3): shebang and imports 2019-05-08 08:57:51 -07:00
t9392-python-callback.sh filter-repo (python3): replace strings with bytestrings 2019-05-08 08:57:51 -07:00
test-lib-functions.sh filter-repo: add some basic tests, with git-style test-lib.sh 2019-03-12 14:19:38 -07:00
test-lib.sh filter-repo: add some basic tests, with git-style test-lib.sh 2019-03-12 14:19:38 -07:00