Mercurial > public > mercurial-scm > hg-stable
diff tests/test-mq-header-date.t @ 38310:88e7105b5cd9
templater: restore the original string format of {date}
Unfortunately, python-hglib relies on that. I could fix python-hglib, but
there would be other tools that take a decimal separator as the separator
of unixtime and tzoffset.
The showfmt is set per instance since new code uses '%d %d' format by default.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 13 Jun 2018 21:57:24 +0900 |
parents | 8d6109b49b31 |
children |
line wrap: on
line diff
--- a/tests/test-mq-header-date.t Tue Jun 12 20:43:56 2018 -0400 +++ b/tests/test-mq-header-date.t Wed Jun 13 21:57:24 2018 +0900 @@ -202,7 +202,7 @@ ==== qnew -d Date: 3 0 - 0: 758bd2596a39 [mq]: 1.patch - test - 3 0 + 0: 758bd2596a39 [mq]: 1.patch - test - 3.00 ==== qref adding 1 Date: 3 0 @@ -212,7 +212,7 @@ +++ b/1 @@ -0,0 +1,1 @@ +1 - 0: 8c640e9949a8 [mq]: 1.patch - test - 3 0 + 0: 8c640e9949a8 [mq]: 1.patch - test - 3.00 ==== qref -d Date: 4 0 @@ -221,7 +221,7 @@ +++ b/1 @@ -0,0 +1,1 @@ +1 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qnew adding 2 diff -r ... 2 @@ -248,8 +248,8 @@ Three - 1: 2a9ef0bdefba Three - test - 6 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: 2a9ef0bdefba Three - test - 6.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qref adding 3 Date: 6 0 @@ -261,8 +261,8 @@ +++ b/3 @@ -0,0 +1,1 @@ +3 - 1: 7f19ad9eea7b Three - test - 6 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: 7f19ad9eea7b Three - test - 6.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qref -m Date: 6 0 @@ -273,8 +273,8 @@ +++ b/3 @@ -0,0 +1,1 @@ +3 - 1: 7ff7377793e3 Drei - test - 6 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: 7ff7377793e3 Drei - test - 6.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qref -d Date: 7 0 @@ -285,8 +285,8 @@ +++ b/3 @@ -0,0 +1,1 @@ +3 - 1: d89d3144f518 Drei - test - 7 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: d89d3144f518 Drei - test - 7.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qref -d -m Date: 8 0 @@ -297,8 +297,8 @@ +++ b/3 @@ -0,0 +1,1 @@ +3 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qnew -m adding 4 Four @@ -331,9 +331,9 @@ now at: 3.patch # HG changeset patch # Date 10 0 - 2: d16a272220d2 imported patch 5.patch - test - 10 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 2: d16a272220d2 imported patch 5.patch - test - 10.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== hg qref adding 5 # HG changeset patch @@ -345,9 +345,9 @@ +++ b/5 @@ -0,0 +1,1 @@ +5 - 2: 5dbf69c07df9 [mq]: 5.patch - test - 10 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 2: 5dbf69c07df9 [mq]: 5.patch - test - 10.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== hg qref -d # HG changeset patch # Date 11 0 @@ -358,9 +358,9 @@ +++ b/5 @@ -0,0 +1,1 @@ +5 - 2: 049de6af0c1d [mq]: 5.patch - test - 11 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 2: 049de6af0c1d [mq]: 5.patch - test - 11.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qnew with plain header popping 6.patch now at: 5.patch @@ -380,10 +380,10 @@ +++ b/6 @@ -0,0 +1,1 @@ +6 - 3: 038c46b02a56 [mq]: 6.patch - test - 12 0 - 2: 049de6af0c1d [mq]: 5.patch - test - 11 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 3: 038c46b02a56 [mq]: 6.patch - test - 12.00 + 2: 049de6af0c1d [mq]: 5.patch - test - 11.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== hg qref -d Date: 13 0 @@ -392,10 +392,10 @@ +++ b/6 @@ -0,0 +1,1 @@ +6 - 3: 2785642ea4b4 [mq]: 6.patch - test - 13 0 - 2: 049de6af0c1d [mq]: 5.patch - test - 11 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 3: 2785642ea4b4 [mq]: 6.patch - test - 13.00 + 2: 049de6af0c1d [mq]: 5.patch - test - 11.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 popping 6.patch now at: 5.patch ==== qnew -u @@ -448,10 +448,10 @@ +++ b/7 @@ -0,0 +1,1 @@ +7 - 3: 4f9d07369cc4 [mq]: 7.patch - john - 13 0 - 2: 049de6af0c1d [mq]: 5.patch - test - 11 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 3: 4f9d07369cc4 [mq]: 7.patch - john - 13.00 + 2: 049de6af0c1d [mq]: 5.patch - test - 11.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qnew adding 8 diff -r ... 8 @@ -523,10 +523,10 @@ applying 5.patch applying 7.patch now at: 7.patch - 3: d26a5b7ffce1 imported patch 7.patch - john - 13 0 - 2: dda6cf77060a imported patch 5.patch - test - 11 0 - 1: 25e32d66c8c7 Three (again) - test - 8 0 - 0: e5011c0211fe imported patch 1.patch - test - 4 0 + 3: d26a5b7ffce1 imported patch 7.patch - john - 13.00 + 2: dda6cf77060a imported patch 5.patch - test - 11.00 + 1: 25e32d66c8c7 Three (again) - test - 8.00 + 0: e5011c0211fe imported patch 1.patch - test - 4.00 $ rm -r sandbox ======= hg headers @@ -540,7 +540,7 @@ # Date 3 0 # Parent - 0: 758bd2596a39 [mq]: 1.patch - test - 3 0 + 0: 758bd2596a39 [mq]: 1.patch - test - 3.00 ==== qref adding 1 # HG changeset patch @@ -552,7 +552,7 @@ +++ b/1 @@ -0,0 +1,1 @@ +1 - 0: 8c640e9949a8 [mq]: 1.patch - test - 3 0 + 0: 8c640e9949a8 [mq]: 1.patch - test - 3.00 ==== qref -d # HG changeset patch # Date 4 0 @@ -563,7 +563,7 @@ +++ b/1 @@ -0,0 +1,1 @@ +1 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qnew adding 2 # HG changeset patch @@ -596,8 +596,8 @@ # Parent Three - 1: 2a9ef0bdefba Three - test - 6 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: 2a9ef0bdefba Three - test - 6.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qref adding 3 # HG changeset patch @@ -610,8 +610,8 @@ +++ b/3 @@ -0,0 +1,1 @@ +3 - 1: 7f19ad9eea7b Three - test - 6 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: 7f19ad9eea7b Three - test - 6.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qref -m # HG changeset patch # Date 6 0 @@ -623,8 +623,8 @@ +++ b/3 @@ -0,0 +1,1 @@ +3 - 1: 7ff7377793e3 Drei - test - 6 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: 7ff7377793e3 Drei - test - 6.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qref -d # HG changeset patch # Date 7 0 @@ -636,8 +636,8 @@ +++ b/3 @@ -0,0 +1,1 @@ +3 - 1: d89d3144f518 Drei - test - 7 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: d89d3144f518 Drei - test - 7.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qref -d -m # HG changeset patch # Date 8 0 @@ -649,8 +649,8 @@ +++ b/3 @@ -0,0 +1,1 @@ +3 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qnew -m adding 4 # HG changeset patch @@ -686,9 +686,9 @@ now at: 3.patch # HG changeset patch # Date 10 0 - 2: d16a272220d2 imported patch 5.patch - test - 10 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 2: d16a272220d2 imported patch 5.patch - test - 10.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== hg qref adding 5 # HG changeset patch @@ -700,9 +700,9 @@ +++ b/5 @@ -0,0 +1,1 @@ +5 - 2: 5dbf69c07df9 [mq]: 5.patch - test - 10 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 2: 5dbf69c07df9 [mq]: 5.patch - test - 10.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== hg qref -d # HG changeset patch # Date 11 0 @@ -713,9 +713,9 @@ +++ b/5 @@ -0,0 +1,1 @@ +5 - 2: 049de6af0c1d [mq]: 5.patch - test - 11 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 2: 049de6af0c1d [mq]: 5.patch - test - 11.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qnew with plain header popping 6.patch now at: 5.patch @@ -735,10 +735,10 @@ +++ b/6 @@ -0,0 +1,1 @@ +6 - 3: 038c46b02a56 [mq]: 6.patch - test - 12 0 - 2: 049de6af0c1d [mq]: 5.patch - test - 11 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 3: 038c46b02a56 [mq]: 6.patch - test - 12.00 + 2: 049de6af0c1d [mq]: 5.patch - test - 11.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== hg qref -d Date: 13 0 @@ -747,10 +747,10 @@ +++ b/6 @@ -0,0 +1,1 @@ +6 - 3: 2785642ea4b4 [mq]: 6.patch - test - 13 0 - 2: 049de6af0c1d [mq]: 5.patch - test - 11 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 3: 2785642ea4b4 [mq]: 6.patch - test - 13.00 + 2: 049de6af0c1d [mq]: 5.patch - test - 11.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 popping 6.patch now at: 5.patch ==== qnew -u @@ -811,10 +811,10 @@ +++ b/7 @@ -0,0 +1,1 @@ +7 - 3: 4f9d07369cc4 [mq]: 7.patch - john - 13 0 - 2: 049de6af0c1d [mq]: 5.patch - test - 11 0 - 1: b1b6b0fe0e6d Three (again) - test - 8 0 - 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0 + 3: 4f9d07369cc4 [mq]: 7.patch - john - 13.00 + 2: 049de6af0c1d [mq]: 5.patch - test - 11.00 + 1: b1b6b0fe0e6d Three (again) - test - 8.00 + 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00 ==== qnew adding 8 # HG changeset patch @@ -894,8 +894,8 @@ applying 5.patch applying 7.patch now at: 7.patch - 3: d26a5b7ffce1 imported patch 7.patch - john - 13 0 - 2: dda6cf77060a imported patch 5.patch - test - 11 0 - 1: 25e32d66c8c7 Three (again) - test - 8 0 - 0: e5011c0211fe imported patch 1.patch - test - 4 0 + 3: d26a5b7ffce1 imported patch 7.patch - john - 13.00 + 2: dda6cf77060a imported patch 5.patch - test - 11.00 + 1: 25e32d66c8c7 Three (again) - test - 8.00 + 0: e5011c0211fe imported patch 1.patch - test - 4.00 $ rm -r sandbox