t9100: stop depending on commit timestamps
commit180a4d76ac8f7c3e97be023e5943f719f3efb55b
authorJeff King <peff@peff.net>
Wed, 15 Jul 2020 07:42:50 +0000 (15 03:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jul 2020 15:02:58 +0000 (15 08:02 -0700)
tree20dd5951a9ad15b9d57cf1aefefb6466b78e9387
parentf2e3937d94c0859c8616861b1d6c87e4efe0790d
t9100: stop depending on commit timestamps

An earlier "fix" to this script gave up updating it not to rely on
the current time because we cannot control what timestamp subversion
gives its commits.  We however could solve the issue in a different
way and still use deterministic timestamps on Git commits.

One fix would be to sort the list of trees before removing duplicates,
but that loses information:

  - we do care that the fetched history is in the same order

  - there's a tree which appears twice in the history, and we'd want to
    make sure that it's there both times

So instead, let's de-duplicate using a hash (preserving the order), and
drop only lines with identical trees and subjects (preserving the tree
which appears twice, since it has different subjects each time).

Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9100-git-svn-basic.sh