sapling/eden/fs/inodes
Michael Bolin ac5b213e92 Include the dirstate tuples and copymap when backing up the dirstate.
Summary:
Previously, the `savebackup()` and `restorebackup()` methods in `eden_dirstate`
only retained the parent commit hashes. With this change, now the dirstate tuples
and entries in the copymap for the dirstate are also included as part of the saved
state.

Failing to restore all of the state caused issues when doing things like aborting
an `hg split`, as observed by one of our users. Although this fix works, we ultimately
plan to move the responsibility for persisting dirstate data out of Eden and into the
Hg extension. Then the data will live in `.hg/dirstate` like it would for the default
dirstate implementation.

Reviewed By: simpkins

Differential Revision: D6145420

fbshipit-source-id: baa077dee73847a47cc171cd980cdd272b3a3a99
2017-10-25 22:36:06 -07:00
..
test augment JournalDelta with unclean paths on snapshot hash change 2017-10-16 22:46:54 -07:00
CheckoutAction.cpp ObjectStore now returns shared_ptr<const> 2017-09-29 16:54:05 -07:00
CheckoutAction.h ObjectStore now returns shared_ptr<const> 2017-09-29 16:54:05 -07:00
CheckoutContext.cpp Adding lastCheckoutTime to EdenMount and initializing timestamps of FileInode with lastCheckoutTime 2017-07-27 11:52:31 -07:00
CheckoutContext.h Adding lastCheckoutTime to EdenMount and initializing timestamps of FileInode with lastCheckoutTime 2017-07-27 11:52:31 -07:00
DeferredDiffEntry.cpp ObjectStore now returns shared_ptr<const> 2017-09-29 16:54:05 -07:00
DeferredDiffEntry.h minor clean up to GitIgnoreStack handling 2017-04-28 19:21:34 -07:00
DiffContext.h augment JournalDelta with unclean paths on snapshot hash change 2017-10-16 22:46:54 -07:00
Dirstate.cpp Include the dirstate tuples and copymap when backing up the dirstate. 2017-10-25 22:36:06 -07:00
Dirstate.h Include the dirstate tuples and copymap when backing up the dirstate. 2017-10-25 22:36:06 -07:00
DirstatePersistence.cpp Include the dirstate tuples and copymap when backing up the dirstate. 2017-10-25 22:36:06 -07:00
DirstatePersistence.h Include the dirstate tuples and copymap when backing up the dirstate. 2017-10-25 22:36:06 -07:00
EdenDispatcher.cpp CodeMod: Replace wangle/concurrency with folly/executors 2017-10-22 14:42:12 -07:00
EdenDispatcher.h Dispatcher no longer needs to know about MountPoint 2017-09-08 19:25:34 -07:00
EdenMount.cpp move MemoryMapping, Shell, ThreadId, ThreadName, and VersionCheck to system/ 2017-10-21 13:06:02 -07:00
EdenMount.h ObjectStore now returns shared_ptr<const> 2017-09-29 16:54:05 -07:00
FileHandle.cpp add code to serialize FileHandleMap 2017-08-30 19:20:23 -07:00
FileHandle.h add code to serialize FileHandleMap 2017-08-30 19:20:23 -07:00
FileInode.cpp remove the blocking getSha1ForBlob method 2017-10-18 10:36:29 -07:00
FileInode.h ObjectStore now returns shared_ptr<const> 2017-09-29 16:54:05 -07:00
hgdirstate.thrift Reimplement dirstate used by Eden's Hg extension as a subclass of Hg's dirstate. 2017-05-26 12:05:29 -07:00
InodeBase.cpp dumb merge of MountPoint into EdenMount 2017-09-08 19:25:34 -07:00
InodeBase.h prefetch inode contents when they're looked up 2017-09-19 11:10:11 -07:00
InodeDiffCallback.h move eden/utils and eden/fuse into eden/fs 2017-04-14 11:39:02 -07:00
InodeError.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
InodeError.h move eden/utils and eden/fuse into eden/fs 2017-04-14 11:39:02 -07:00
InodeMap.cpp prefetch inode contents when they're looked up 2017-09-19 11:10:11 -07:00
InodeMap.h prefetch inode contents when they're looked up 2017-09-19 11:10:11 -07:00
InodePtr-defs.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
InodePtr.cpp simplify InodePtr classes 2017-04-06 13:20:01 -07:00
InodePtr.h simplify InodePtr classes 2017-04-06 13:20:01 -07:00
InodePtrFwd.h simplify InodePtr classes 2017-04-06 13:20:01 -07:00
Overlay.cpp Wrapper for TimeStamps & helper function to set timestamps in setattr. 2017-08-11 11:36:07 -07:00
Overlay.h Wrapper for TimeStamps & helper function to set timestamps in setattr. 2017-08-11 11:36:07 -07:00
overlay.thrift fix issues updating TreeInode materialization status during checkout 2017-07-07 18:45:02 -07:00
ParentInodeInfo.h move eden/utils and eden/fuse into eden/fs 2017-04-14 11:39:02 -07:00
TARGETS CodeMod: Replace wangle/concurrency with folly/executors 2017-10-22 14:42:12 -07:00
TreeInode.cpp flush kernel caches properly for empty directories removed by checkout 2017-10-25 16:51:56 -07:00
TreeInode.h flush kernel caches properly for empty directories removed by checkout 2017-10-25 16:51:56 -07:00
TreeInodeDirHandle.cpp add code to serialize FileHandleMap 2017-08-30 19:20:23 -07:00
TreeInodeDirHandle.h add code to serialize FileHandleMap 2017-08-30 19:20:23 -07:00