t6012: make rev-list tests more interesting
commit561b583749b7428f1790f03164d0d0e75be71d7b
authorDerrick Stolee <stolee@gmail.com>
Thu, 1 Nov 2018 13:46:23 +0000 (1 13:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Nov 2018 03:14:22 +0000 (2 12:14 +0900)
tree66b7d1069ee455bb640e749941d718d601a12161
parentb45424181e9e8b2284a48c6db7b8db635bbfccc8
t6012: make rev-list tests more interesting

As we are working to rewrite some of the revision-walk machinery,
there could easily be some interesting interactions between the
options that force topological constraints (--topo-order,
--date-order, and --author-date-order) along with specifying a
path.

Add extra tests to t6012-rev-list-simplify.sh to add coverage of
these interactions. To ensure interesting things occur, alter the
repo data shape to have different orders depending on topo-, date-,
or author-date-order.

When testing using GIT_TEST_COMMIT_GRAPH, this assists in covering
the new logic for topo-order walks using generation numbers. The
extra tests can be added indepently.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6012-rev-list-simplify.sh