[PATCH 0 of 1] convert: add config option to use the local time zone

Julian Cowley julian at lava.net
Tue Nov 13 03:54:09 CST 2012


Here is a patch to the convert extension to use the local time zone
in converted changesets.

I've seen a few requests for this on this mailing list, and a few
workarounds have been suggested.  I've wanted it myself since I've
been converting repositories that are always in my own time zone,
and it makes sense to record the local time since I always know what
it is.  It makes logs easier to interpret since the time of day can
be relevant.

My main inspiration for this patch came from this posting:

    http://selenic.com/pipermail/mercurial/2012-January/041598.html

The local time zone is inherited from the Python (using the TZ
environment variable through time.tzset()).


More information about the Mercurial-devel mailing list