mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
ab750945fe
Summary: The check on the type of an exception was inverted, which meant `hg remove <path>` would throw an exception if the parent directory of `path` did not exist. This is not correct because the user should be able to expect to do: ``` mkdir -p /tmp/example cd /tmp/example hg init mkdir mydir touch mydir/a hg add mydir/a rm -rf mydir/a hg rm mydir/a ``` In this scenario, `mydir` does not exist when `hg rm` is called, but the command should succeed, making `mydir/a` no longer tracked. Reviewed By: simpkins Differential Revision: D4268451 fbshipit-source-id: 517d81252aa8e4b6bd1a32dece14776a9f7dd6f7 |
||
---|---|---|
.. | ||
test | ||
Dirstate.cpp | ||
Dirstate.h | ||
DirstatePersistence.cpp | ||
DirstatePersistence.h | ||
EdenDispatcher.cpp | ||
EdenDispatcher.h | ||
EdenMount.cpp | ||
EdenMount.h | ||
EdenMounts.cpp | ||
EdenMounts.h | ||
FileData.cpp | ||
FileData.h | ||
FileHandle.cpp | ||
FileHandle.h | ||
FileInode.cpp | ||
FileInode.h | ||
InodeBase.cpp | ||
InodeBase.h | ||
Overlay.cpp | ||
Overlay.h | ||
overlay.thrift | ||
TARGETS | ||
TreeInode.cpp | ||
TreeInode.h | ||
TreeInodeDirHandle.cpp | ||
TreeInodeDirHandle.h |