# HG changeset patch # User Franz Glasner # Date 1580658047 -3600 # Node ID 38f4e4474df00cec4ba10b3e17346bda19661e80 # Parent 0ad9dff8835d433e6ef47ca5d58ad4fcfb914cba Unit test for "commit --amend" and a file added in the second commit. This test fails currently. diff -r 0ad9dff8835d -r 38f4e4474df0 tests/test-timestamps.t --- a/tests/test-timestamps.t Sat Feb 01 14:54:54 2020 +0100 +++ b/tests/test-timestamps.t Sun Feb 02 16:40:47 2020 +0100 @@ -716,3 +716,27 @@ timestamps: no `match' instance given in commit - deactivating timestamps in this commit saved backup bundle to \$TESTTMP/ts11/\.hg/strip-backup/[0-9a-f-]+-rebase\.hg (re) $ cd .. + + +10. commit with --amend +======================= + +This test currently fails always. + + $ prepare_mini_repo "ts12" + $ cd ts12 + $ echo "c1" >f1 + $ touch -d 2017-12-01T01:02:03Z f1 + $ hg add f1 + $ hg ci -m "ADD: f1" + $ echo "c2" >f2 + $ touch -d 2017-12-01T02:03:04Z f2 + $ hg add f2 + $ hg commit --amend -m "ADD: f1 AND f2" + saved backup bundle to \$TESTTMP/ts12/\.hg/strip-backup/[0-9a-f-]+-amend\.hg (re) + $ cat .hgtimestamps.db + version=1 + encoding=binary + f1,2017-12-01T01:02:03Z + f2,2017-12-01T02:03:04Z + $ cd ..