Improved date support

TK Soh teekaysoh at gmail.com
Wed Dec 13 03:04:58 UTC 2006


On 12/6/06, Matt Mackall <mpm at selenic.com> wrote:
> The date handling support in tip has been greatly improved. Commands
> that take dates can now handle things like:
>
>   Dec 12       (this year)
>   3:30pm       (today)
>   5/1/99       (May 1 1999)
>   1999-5-1     (same)
>
> The log, update, and revert commands now accept a date option. For
> log, this specifies a date range like so:
>
>   <Dec 12      (before December 12th, inclusive)
>   >3:30pm      (after 15:30 local time)
>   May 5 to Jun 2
>   2005         (only changes in 2005)
>   -5           (in the last five days)
>   Dec 8        (everything on December 8th)

Is the date UTC? I tried on the latest crew and got this:

% hg log -d "Dec 12"
changeset:   3872:9d7ac8613340
user:        Benoit Boissinot <benoit.boissinot at ens-lyon.org>
date:        Tue Dec 12 11:39:05 2006 +0100
summary:     fix MANIFEST generation

changeset:   3871:7a4749c5bbcb
user:        Brendan Cully <brendan at kublai.com>
date:        Mon Dec 11 16:40:42 2006 -0800
summary:     mq: auto-ignore guards in qinit -c

changeset:   3870:22d18051f9e5
user:        Brendan Cully <brendan at kublai.com>
date:        Mon Dec 11 16:32:45 2006 -0800
summary:     mq: fix explain_pushable for negative guards

changeset:   3869:ad6f34c83c3d
user:        Thomas Arendsen Hein <thomas at intevation.de>
date:        Mon Dec 11 18:09:52 2006 +0100
summary:     Add instructions how to redo/finish failed merge with
local working directory.

% date
Wed Dec 13 11:03:50 SGT 2006



More information about the Mercurial-devel mailing list