[PATCH 2 of 2] Test the changelog style
Gilles Moris
gilles.moris at free.fr
Thu Mar 20 23:10:07 UTC 2008
2 files changed, 158 insertions(+)
tests/test-command-template | 5 +
tests/test-command-template.out | 153 +++++++++++++++++++++++++++++++++++++++
# HG changeset patch
# User Gilles Moris <gilles.moris at free.fr>
# Date 1206054568 -3600
# Node ID dbc0d55d9d4d06dea0bdc73a88a54be0922862c9
# Parent a78761e220b82e860504068ce8366e7cbd395fbf
Test the changelog style
The compact style was tested, but not the changelog style.
Updated the test-command-template to test it.
diff -r a78761e220b8 -r dbc0d55d9d4d tests/test-command-template
--- a/tests/test-command-template Fri Mar 21 00:09:28 2008 +0100
+++ b/tests/test-command-template Fri Mar 21 00:09:28 2008 +0100
@@ -57,6 +57,11 @@ hg log --style compact
hg log --style compact
hg log -v --style compact
hg log --debug --style compact
+
+echo '# changelog style works'
+hg log --style changelog
+hg log -v --style changelog
+hg log --debug --style changelog
echo '# error if style not readable'
touch q
diff -r a78761e220b8 -r dbc0d55d9d4d tests/test-command-template.out
--- a/tests/test-command-template.out Fri Mar 21 00:09:28 2008 +0100
+++ b/tests/test-command-template.out Fri Mar 21 00:09:28 2008 +0100
@@ -78,6 +78,159 @@ 0:-1,-1 1e4e1b8f71e0 1970-01-12 13:4
0:-1,-1 1e4e1b8f71e0 1970-01-12 13:46 +0000 user
line 1
+# changelog style works
+1970-01-12 User Name <user at hostname>
+
+ * second:
+ second
+ [29114dbae42b] [tip]
+
+1970-01-18 person <person>
+
+ * merge
+ [c7b487c6c50e]
+
+ * d:
+ new head
+ [13207e5a10d9]
+
+1970-01-17 person <person>
+
+ * new branch
+ [32a18f097fcc]
+
+1970-01-16 person <person>
+
+ * c:
+ no user, no domain
+ [10e46f2dcbf4]
+
+1970-01-14 other <other at place>
+
+ * c:
+ no person
+ [97054abb4ab8]
+
+1970-01-13 A. N. Other <other at place>
+
+ * b:
+ other 1 other 2
+
+ other 3
+ [b608e9d1a3f0]
+
+1970-01-12 User Name <user at hostname>
+
+ * a:
+ line 1 line 2
+ [1e4e1b8f71e0]
+
+1970-01-12 13:46 +0000 User Name <user at hostname>
+ (29114dbae42b9f078cf2714dbe3a86bba8ec7453 [tip])
+
+ * second: new file.
+ * second:
+ second
+
+1970-01-18 08:40 +0000 person <person>
+ (c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f)
+
+ * merge
+
+1970-01-18 08:40 +0000 person <person>
+ (13207e5a10d9fd28ec424934298e176197f2c67f)
+
+ * d: new file.
+ * d:
+ new head
+
+1970-01-17 04:53 +0000 person <person>
+ (32a18f097fcccf76ef282f62f8a85b3adf8d13c4)
+
+ * new branch
+
+1970-01-16 01:06 +0000 person <person>
+ (10e46f2dcbf4823578cf180f33ecf0b957964c47)
+
+ * c:
+ no user, no domain
+
+1970-01-14 21:20 +0000 other <other at place>
+ (97054abb4ab824450e9164180baf491ae0078465)
+
+ * c: new file.
+ * c:
+ no person
+
+1970-01-13 17:33 +0000 A. N. Other <other at place>
+ (b608e9d1a3f0273ccf70fb85fd6866b3482bf965)
+
+ * b: new file.
+ * b:
+ other 1 other 2
+
+ other 3
+
+1970-01-12 13:46 +0000 User Name <user at hostname>
+ (1e4e1b8f71e05681d422154f5421e385fec3454f)
+
+ * a: new file.
+ * a:
+ line 1 line 2
+
+1970-01-12 13:46 +0000 User Name <user at hostname>
+ (29114dbae42b9f078cf2714dbe3a86bba8ec7453 [tip])
+
+ * second: new file.
+ * second:
+ second
+
+1970-01-18 08:40 +0000 person <person>
+ (c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f)
+
+ * merge
+
+1970-01-18 08:40 +0000 person <person>
+ (13207e5a10d9fd28ec424934298e176197f2c67f)
+
+ * d: new file.
+ * d:
+ new head
+
+1970-01-17 04:53 +0000 person <person>
+ (32a18f097fcccf76ef282f62f8a85b3adf8d13c4)
+
+ * new branch
+
+1970-01-16 01:06 +0000 person <person>
+ (10e46f2dcbf4823578cf180f33ecf0b957964c47)
+
+ * c:
+ no user, no domain
+
+1970-01-14 21:20 +0000 other <other at place>
+ (97054abb4ab824450e9164180baf491ae0078465)
+
+ * c: new file.
+ * c:
+ no person
+
+1970-01-13 17:33 +0000 A. N. Other <other at place>
+ (b608e9d1a3f0273ccf70fb85fd6866b3482bf965)
+
+ * b: new file.
+ * b:
+ other 1 other 2
+
+ other 3
+
+1970-01-12 13:46 +0000 User Name <user at hostname>
+ (1e4e1b8f71e05681d422154f5421e385fec3454f)
+
+ * a: new file.
+ * a:
+ line 1 line 2
+
# error if style not readable
abort: Permission denied: ./q
# error if no style
More information about the Mercurial-devel
mailing list