changeset 212:bfb41de4584d

Write the database outside the special float times context
author Franz Glasner <hg@dom66.de>
date Tue, 16 Oct 2018 17:56:52 +0200
parents 1ce805370b1e
children da2552a8b0ce
files extensions/timestamps.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/timestamps.py	Tue Oct 16 16:57:14 2018 +0200
+++ b/extensions/timestamps.py	Tue Oct 16 17:56:52 2018 +0200
@@ -174,8 +174,8 @@
             if matcher(fn):
                 st = os.lstat(repo.wjoin(fn))
                 ts[fn] = to_isoformat(st.st_mtime)
-        with io.open(repo.wjoin(TIMESTAMPS_DATABASE), "wb") as fp:
-            ts.write(fp)
+    with io.open(repo.wjoin(TIMESTAMPS_DATABASE), "wb") as fp:
+        ts.write(fp)
 
 
 def restore_timestamps(ui, repo, ctx,