topology tests: teach a helper to take abbreviated timestamps
commit841dc6935ea0f2ecfc778501edc66dc2c828d333
authorJunio C Hamano <gitster@pobox.com>
Fri, 21 Jun 2013 17:29:59 +0000 (21 10:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Jun 2013 18:15:32 +0000 (21 11:15 -0700)
treea3fe8a66cd3db9d4dfbaaac651affff412fc69f9
parent50e5a252225137f0fbb18a0ff72a0ae052e09d24
topology tests: teach a helper to take abbreviated timestamps

The on_committer_date helper in t/lib-t6000 is used in t6002 and
t6003 with timestamps on a single day within a single minute
(i.e. 1971-08-16 00:00) and the tests repeat this over and over.

The actual value of the timestamp, however, does not matter very
much; only their relative ordering does.

Introduce another helper to expand only the suffix of the timestamp
to a full timestamp to make the lines shorter, and use it in this
helper.  Also, because all the commits in the test are made with
specific GIT_COMMITTER_DATE, stop unsetting it at the end of the
helper.

We'll be specifying the author timestamp to these test commits in a
later patch, which will be helped with this change.

Also remove a test that was commented-out from t6003; it used to
test a commit with the same parent listed twice, which was allowed
by mistake but was fixed long time ago.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-t6000.sh
t/t6002-rev-list-bisect.sh
t/t6003-rev-list-topo-order.sh