Mercurial > hg
comparison mercurial/dirstatemap.py @ 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 | b4f83c9e7905 |
children | 434de12918fd |
comparison
equal
deleted
inserted
replaced
48259:84f6b0c41b90 | 48260:269ff8978086 |
---|---|
125 self._refresh_entry(filename, entry) | 125 self._refresh_entry(filename, entry) |
126 | 126 |
127 def set_clean(self, filename, mode, size, mtime): | 127 def set_clean(self, filename, mode, size, mtime): |
128 """mark a file as back to a clean state""" | 128 """mark a file as back to a clean state""" |
129 entry = self[filename] | 129 entry = self[filename] |
130 mtime = mtime & rangemask | |
131 size = size & rangemask | 130 size = size & rangemask |
132 entry.set_clean(mode, size, mtime) | 131 entry.set_clean(mode, size, mtime) |
133 self._refresh_entry(filename, entry) | 132 self._refresh_entry(filename, entry) |
134 self.copymap.pop(filename, None) | 133 self.copymap.pop(filename, None) |
135 | 134 |