jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk
kylezhao 3d7351ee50 TreeRevFilter: fix wrong stop when the given path disappears
When chgs[i] == adds[i], it indicated that a commit added some files
that pList[i] did not have, but didn't mean pList[i] is "empty tree
root".

Follow the example below:

.                           .
└── src                     └── src
    └── d1          ==>          └── d1
        └─ file1                    ├─  file1
                                    └── file2
   c.parents[i]                   c

The variable chg[i] equals to variable add[i],
but commit c.parents[i] is not "empty tree root".

We should add an additional check for no paths matching the filter.

Bug: 577227
Change-Id: I834e9ddd0de86b108b280a1139519ea962913b38
Signed-off-by: kylezhao <kylezhao@tencent.com>
2021-12-17 00:29:11 +01:00
..
AlwaysEmptyRevQueueTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
DateRevQueueTest.java Fix DateRevQueue tie breaks with more than 2 elements 2021-02-07 06:09:48 -05:00
FIFORevQueueTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
FirstParentRevWalkTest.java RevWalk: new topo sort to not mix lines of history 2020-03-11 15:39:38 -07:00
FooterLineTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
LIFORevQueueTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
MaxCountRevFilterTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
ObjectWalkFilterTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
ObjectWalkTest.java ObjectWalk: Add null check before skip tree. 2020-02-26 12:03:58 -08:00
RevCommitListTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevCommitParseTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevFlagSetTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevObjectTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevQueueTestCase.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevTagParseTest.java Tag message must not include the signature 2021-01-10 10:19:40 -05:00
RevWalkCarryFlagsTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkCullTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkFilterTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkFollowFilterTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkMergeBaseTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkMergedIntoTest.java Fix RevWalk.getMergedInto() ignores annotated tags 2021-10-08 12:05:48 +02:00
RevWalkPathFilter1Test.java TreeRevFilter: fix wrong stop when the given path disappears 2021-12-17 00:29:11 +01:00
RevWalkPathFilter6012Test.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkResetTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkShallowTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkSortTest.java RevWalk: fix bad topo flags error message 2020-03-12 09:04:36 -07:00
RevWalkTestCase.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkUtilsCountTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RevWalkUtilsReachableTest.java Optimize RevWalk.getMergedInto() 2021-10-08 12:05:47 +02:00
SkipRevFilterTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
TreeRevFilterTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00