# HG changeset patch # User Mads Kiilerich # Date 1360360457 -3600 # Node ID 82697301ffa2bc29562716b642d27230090e9611 # Parent 2ea362720f727e886d8292e388427cf716de89f1 export: show 'Date' header in a format that also is readable for humans 'export' is the official export format and used by patchbomb, but it would only show date as a timestamp that most humans might find it hard to relate to. It would be very convenient when reviewing a patch to be able to see what timestamp the patch will end up with. Mercurial has always used util.parsedate for parsing these headers. It can handle 'all' date formats, so we could just as well use a readable one. 'export' will now use the format used by 'log' - which is the format described as 'Unix date format' in the templating help. We assume that all parsers of '# HG changeset patch'es can handle that. [ original upstream message ] diff -r 2ea362720f72 -r 82697301ffa2 tests/test-keyword.t --- a/tests/test-keyword.t Wed Jan 30 01:24:04 2013 +0100 +++ b/tests/test-keyword.t Fri Feb 08 22:54:17 2013 +0100 @@ -528,6 +528,7 @@ # HG changeset patch # User User Name # Date 1 0 + # Thu Jan 01 00:00:01 1970 +0000 # Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad # Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 cndiff