[PATCH 0 of 1] [PATCH] Option to enforce using UTC for commit dates

Pierre-Yves David pierre-yves.david at logilab.fr
Tue Dec 18 04:11:54 CST 2012


On Tue, Dec 18, 2012 at 02:24:52AM +0100, arne_bab at web.de wrote:
> To make the infocalypse extension safe for anonymous use, the user
> needs an easy and reliable way to set the time zone to UTC to avoid
> leaking location information.
> 
> This patch adds a config option to always use UTC, except if
> explicitely requested otherwise (via a date string which includes the
> timezone).
> 
> I hope the config option can be included, because it is a precondition
> for making anonymous collaboration with Mercurial over freenet safe by
> default.
> 
> I added the function timezoneprivacy to util along with doctests and
> extended the test for an empty date string when committing to also
> check if the config option causes a datestring without
> timezone-information to be interpreted as UTC instead of local time.
> 
> Changes:
> 
>  mercurial/cmdutil.py      |   4 ++-
>  mercurial/commands.py     |   5 +++-
>  mercurial/help/config.txt |   4 +++
>  mercurial/util.py         |  51 ++++++++++++++++++++++++++++++++++++----------
>  tests/test-commit.t       |  10 ++++++++-
> 
> Best wishes,
> Arne

Mos tof this should go in the commit message.

-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20121218/d9d3157b/attachment.pgp>


More information about the Mercurial-devel mailing list