mercurial/util.py
changeset 27015 341cb90ffd18
parent 26847 9f16787cbefd
child 27016 448cbdab5883
--- 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