mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
3f046593a8
Summary: 1. Added a new structure `InodeBase::InodeTimestamps` to wrap atime,ctime,mtime together. This new structure helps in avoiding usage of `struct stat` for timestamps. 2. Modified function `Overlay::openFile` ,`Overlay::updateTimestampToHeader`, `Overlay::deserializeOverlayDir`, `Overlay::parseHeader` to use this new structure for timestamps instead of `struct stat`. Also, modified code in places where this change is being affected. 3. Added new helper methods `FileInode::setattrTimes` and `TreeInode::setattrTimes` to set timestamps in FileInode and TreeInode during setattr. Implementation of setattr for FileInode and TreeInode is in the diffs stacked above this diff. 4. Replaced atime, ctime, mtime in `FileInode::State`, `TreeInode::Dir` to `FileInode::State::timeStamps` and `TreeInode::State::timeStamps`. Made other necessary changes to support this change. Reviewed By: simpkins Differential Revision: D5596854 fbshipit-source-id: 2786b7b695508a62fdf8f7829f1ce76054b61c52 |
||
---|---|---|
.. | ||
CheckoutTest.cpp | ||
DiffTest.cpp | ||
DirstatePersistenceTest.cpp | ||
DirstateTest.cpp | ||
EdenMountTest.cpp | ||
FileInodeTest.cpp | ||
InodeBaseTest.cpp | ||
InodeMapTest.cpp | ||
InodePtrTest.cpp | ||
main.cpp | ||
OverlayTest.cpp | ||
RemoveTest.cpp | ||
RenameTest.cpp | ||
SymlinkTest.cpp | ||
TARGETS |