Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 414:38f4e4474df0
Unit test for "commit --amend" and a file added in the second commit.
This test fails currently.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 02 Feb 2020 16:40:47 +0100 |
| parents | 0ad9dff8835d |
| children | 4b22cfae980d |
| files | tests/test-timestamps.t |
| diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 ..
