Mercurial > public > mercurial-scm > hg-stable
diff tests/test-commit.t @ 12156:4c94b6d0fb1c
tests: remove unneeded -d flags
Many tests fixed the commit date of their changesets at '1000000 0' or
similar. However testing with "Mon Jan 12 13:46:40 1970 +0000" is not
better than testing with "Thu Jan 01 00:00:00 1970 +0000", which is
the default run-tests.py installs.
Removing the unnecessary flag removes some clutter and will hopefully
make it clearer what the tests are really trying to test. Some tests
did not even change their output when the dates were changed, in which
case the -d flag was truly irrelevant.
Dates used in sequence (such as '0 0', '1 0', etc...) were left alone
since they may make the test easier to understand.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 02 Sep 2010 23:22:51 +0200 |
parents | 6f58430dfdd0 |
children | 4134686b83e1 |
line wrap: on
line diff
--- a/tests/test-commit.t Thu Sep 02 22:17:22 2010 +0200 +++ b/tests/test-commit.t Thu Sep 02 23:22:51 2010 +0200 @@ -23,9 +23,9 @@ $ echo bar > bar $ hg add bar $ rm bar - $ hg commit -d "1000000 0" -m commit-8 + $ hg commit -m commit-8 nothing changed - $ hg commit -d "1000000 0" -m commit-8-2 bar + $ hg commit -m commit-8-2 bar abort: bar: file not found! $ hg -q revert -a --no-backup @@ -89,15 +89,15 @@ $ hg add adding bar/bar adding foo/foo - $ hg ci -d '1000000 0' -m commit-subdir-1 foo - $ hg ci -d '1000001 0' -m commit-subdir-2 bar + $ hg ci -m commit-subdir-1 foo + $ hg ci -m commit-subdir-2 bar subdir log 1 $ hg log -v foo - changeset: 0:6ef3cb06bb80 + changeset: 0:f97e73a25882 user: test - date: Mon Jan 12 13:46:40 1970 +0000 + date: Thu Jan 01 00:00:00 1970 +0000 files: foo/foo description: commit-subdir-1 @@ -107,10 +107,10 @@ subdir log 2 $ hg log -v bar - changeset: 1:f2e51572cf5a + changeset: 1:aa809156d50d tag: tip user: test - date: Mon Jan 12 13:46:41 1970 +0000 + date: Thu Jan 01 00:00:00 1970 +0000 files: bar/bar description: commit-subdir-2 @@ -120,18 +120,18 @@ full log $ hg log -v - changeset: 1:f2e51572cf5a + changeset: 1:aa809156d50d tag: tip user: test - date: Mon Jan 12 13:46:41 1970 +0000 + date: Thu Jan 01 00:00:00 1970 +0000 files: bar/bar description: commit-subdir-2 - changeset: 0:6ef3cb06bb80 + changeset: 0:f97e73a25882 user: test - date: Mon Jan 12 13:46:40 1970 +0000 + date: Thu Jan 01 00:00:00 1970 +0000 files: foo/foo description: commit-subdir-1 @@ -147,25 +147,25 @@ $ mkdir foo $ echo foo content > foo/plain-file $ hg add foo/plain-file - $ hg ci -d '1000000 0' -m commit-foo-subdir foo + $ hg ci -m commit-foo-subdir foo $ echo modified foo content > foo/plain-file - $ hg ci -d '2000000 0' -m commit-foo-dot . + $ hg ci -m commit-foo-dot . full log $ hg log -v - changeset: 1:d9180e04fa8a + changeset: 1:95b38e3a5b2e tag: tip user: test - date: Sat Jan 24 03:33:20 1970 +0000 + date: Thu Jan 01 00:00:00 1970 +0000 files: foo/plain-file description: commit-foo-dot - changeset: 0:80b572aaf098 + changeset: 0:65d4e9386227 user: test - date: Mon Jan 12 13:46:40 1970 +0000 + date: Thu Jan 01 00:00:00 1970 +0000 files: foo/plain-file description: commit-foo-subdir @@ -176,15 +176,15 @@ $ cd foo $ hg log . - changeset: 1:d9180e04fa8a + changeset: 1:95b38e3a5b2e tag: tip user: test - date: Sat Jan 24 03:33:20 1970 +0000 + date: Thu Jan 01 00:00:00 1970 +0000 summary: commit-foo-dot - changeset: 0:80b572aaf098 + changeset: 0:65d4e9386227 user: test - date: Mon Jan 12 13:46:40 1970 +0000 + date: Thu Jan 01 00:00:00 1970 +0000 summary: commit-foo-subdir $ cd ..