diff -r 4223fc58f952 -r 341cb90ffd18 mercurial/util.py --- a/mercurial/util.py Wed Nov 18 15:58:06 2015 -0800 +++ b/mercurial/util.py Thu Nov 19 13:21:24 2015 -0600 @@ -88,6 +88,11 @@ _notset = object() +# 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.) +os.stat_float_times(False) + def safehasattr(thing, attr): return getattr(thing, attr, _notset) is not _notset