[PATCH 1 of 2] util: disable floating point stat times (issue4836)
timeless
timeless at gmail.com
Tue Nov 24 12:32:19 CST 2015
> +# disable Python's problematic floating point timestamps (issue4836)
> +# (Python hypocritically says you shouldn't change this behavior in
> +# libraries, and sure enough Mercurial is not a library.)
Presumably this is because it's neither threadsafe (i.e. it's process
global, not per-thread), nor compatible w/ multiple libraries with
different opinions about the behavior. i.e. if one library needs it
off and one library needs it on, the two libraries will break
each-other horribly.
You're right that Mercurial as an application is allowed to do this
(anyone who wants to use Mercurial as a library should be using an out
of process bridge, such as the command server.
More information about the Mercurial-devel
mailing list