[PATCH] export: show 'Date' header in a format that also is readable for humans

Mads Kiilerich mads at kiilerich.com
Sun Feb 10 06:12:12 CST 2013

On 02/10/2013 12:53 PM, Brodie Rao wrote:
> On Sat, Feb 9, 2013 at 9:31 AM, Mads Kiilerich <mads at kiilerich.com> wrote:
>> # HG changeset patch
>> # User Mads Kiilerich <mads at kiilerich.com>
>> # Date 1360360457 -3600
>> # Node ID 055060daf58dbe46c667053cbb04409b202ee9cd
>> # Parent  97761496c65ae836d6b0983a3f48959dd3112364
>> 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.
> Are there any third party utilities that parse these headers? I wonder
> if this might cause other tools to break.

Yes, that is a valid concern, but we don't expect that. Parsers should 
read it as Mercurial do, and Mercurial has always been able to handle 
all formats.

So I will put it in 'default' and we can wait and see if it really 
becomes a problem.


More information about the Mercurial-devel mailing list