sapling/eden/fs
Adam Simpkins bac93b71cf be more careful about how we re-open the repository
Summary:
Update the hg_import_helper.py code to catch exceptions from `repo.close()`
when we are re-opening the repository after an error.  Also set `self.repo` to
`None` before we start, so that it will be left as None if anything goes wrong
either closing or re-opening the repository.

I ran into a situation where `repo.close()` threw an error, and previously
this would leave `hg_import_helper.py` stuck in a bad state since it would
still be pointing to the old repo object.  The next time it received a command
it would fail and try to call `self.repo.close()` again, which would still
fail since the repository was already in a halfway closed state.

Now the code will always forget about the old repository object and create a
new object.

Reviewed By: wez

Differential Revision: D9419109

fbshipit-source-id: 15bb296ba19d9d3d2a2b90169bf25b0e8e197c1f
2018-08-21 11:53:26 -07:00
..
config read use-mononoke and client-certificate in edenfs 2018-08-20 11:22:14 -07:00
fuse use rvalue-qual Future::ensure(): pass 2 2018-08-16 20:37:45 -07:00
inodes Replace shared_ptr<JournalDelta> with a custom intrusive JournalDeltaPtr 2018-08-17 21:06:53 -07:00
journal Fix stack overflow when destroying long Journal 2018-08-17 21:06:53 -07:00
model Added class CachedParsedFileMonitor and tests 2018-07-25 20:07:23 -07:00
rocksdb add CMake build files 2018-04-30 14:37:46 -07:00
service read use-mononoke and client-certificate in edenfs 2018-08-20 11:22:14 -07:00
sqlite avoid leaking the sqlite3 db if we fail to open it 2018-06-20 16:36:22 -07:00
store be more careful about how we re-open the repository 2018-08-21 11:53:26 -07:00
takeover add integration tests for CLI behavior inside a stale mount 2018-07-27 18:36:55 -07:00
testharness Allow USER and HOME to be interpolated in Eden c++ code 2018-08-06 13:53:07 -07:00
utils read use-mononoke and client-certificate in edenfs 2018-08-20 11:22:14 -07:00
CMakeLists.txt add CMake build files 2018-04-30 14:37:46 -07:00
eden-config.h add CMake build files 2018-04-30 14:37:46 -07:00