Mercurial > hg
comparison tests/test-bookmarks-strip.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 | 863567a1364f |
children | 02990e22150b |
comparison
equal
deleted
inserted
replaced
12155:94ad12aa0530 | 12156:4c94b6d0fb1c |
---|---|
11 $ hg add | 11 $ hg add |
12 adding qqq.txt | 12 adding qqq.txt |
13 | 13 |
14 commit first revision | 14 commit first revision |
15 | 15 |
16 $ hg ci -m 1 -u user -d "1 0" | 16 $ hg ci -m 1 |
17 | 17 |
18 set bookmark | 18 set bookmark |
19 | 19 |
20 $ hg book test | 20 $ hg book test |
21 | 21 |
22 $ echo www>>qqq.txt | 22 $ echo www>>qqq.txt |
23 | 23 |
24 commit second revision | 24 commit second revision |
25 | 25 |
26 $ hg ci -m 2 -u usr -d "1 0" | 26 $ hg ci -m 2 |
27 | 27 |
28 set bookmark | 28 set bookmark |
29 | 29 |
30 $ hg book test2 | 30 $ hg book test2 |
31 | 31 |
36 | 36 |
37 $ echo eee>>qqq.txt | 37 $ echo eee>>qqq.txt |
38 | 38 |
39 commit new head | 39 commit new head |
40 | 40 |
41 $ hg ci -m 3 -u user -d "1 0" | 41 $ hg ci -m 3 |
42 created new head | 42 created new head |
43 | 43 |
44 bookmarks updated? | 44 bookmarks updated? |
45 | 45 |
46 $ hg book | 46 $ hg book |
47 test 1:16b24da7e457 | 47 test 1:25e1ee7a0081 |
48 test2 1:16b24da7e457 | 48 test2 1:25e1ee7a0081 |
49 | 49 |
50 strip to revision 1 | 50 strip to revision 1 |
51 | 51 |
52 $ hg strip 1 | 52 $ hg strip 1 |
53 saved backup bundle to .* | 53 saved backup bundle to .* |
54 | 54 |
55 list bookmarks | 55 list bookmarks |
56 | 56 |
57 $ hg book | 57 $ hg book |
58 * test 1:9f1b7e78eff8 | 58 * test 1:8cf31af87a2b |
59 * test2 1:9f1b7e78eff8 | 59 * test2 1:8cf31af87a2b |
60 | 60 |