Mercurial > hg
comparison mercurial/cext/util.h @ 48260:269ff8978086
dirstate: store mtimes with nanosecond precision in memory
Keep integer seconds since the Unix epoch,
together with integer nanoseconds in the `0 <= n < 1e9` range.
For now, nanoseconds are still always zero.
This commit is about data structure changes.
Differential Revision: https://phab.mercurial-scm.org/D11684
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 18 Oct 2021 11:23:07 +0200 |
parents | 602c8e8411f5 |
children | 9205d9be8b41 |
comparison
equal
deleted
inserted
replaced
48259:84f6b0c41b90 | 48260:269ff8978086 |
---|---|
25 typedef struct { | 25 typedef struct { |
26 PyObject_HEAD | 26 PyObject_HEAD |
27 int flags; | 27 int flags; |
28 int mode; | 28 int mode; |
29 int size; | 29 int size; |
30 int mtime; | 30 int mtime_s; |
31 int mtime_ns; | |
31 } dirstateItemObject; | 32 } dirstateItemObject; |
32 /* clang-format on */ | 33 /* clang-format on */ |
33 | 34 |
34 static const int dirstate_flag_wc_tracked = 1; | 35 static const int dirstate_flag_wc_tracked = 1; |
35 static const int dirstate_flag_p1_tracked = 1 << 1; | 36 static const int dirstate_flag_p1_tracked = 1 << 1; |