mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
f334d7ab79
Summary: Most of the logic in TreeInode::create(), symlink() and mknod() was very similar. This adds a TreeInode::createImpl() helper method that these three functions can share. This also updates TreeInode::create() to throw EEXIST if the file in question does exist, rather than using EDEN_BUG(). I believe it is possible (but unlikely) for this to occur in practice since inode invalidation operations triggered by a checkout are now processed asynchronously. Reviewed By: chadaustin Differential Revision: D7411500 fbshipit-source-id: 85d97995139eee6bff96381561fc28e76d7a2b7c |
||
---|---|---|
.. | ||
cli | ||
docs | ||
fs | ||
hooks | ||
integration | ||
py | ||
scripts | ||
third-party | ||
AUTODEPS | ||
DEFS |