sapling/eden
Adam Simpkins 05394747ae restart hg_import_helper.py when the repository needs to be reopened
Summary:
Update hg_import_helper.py to throw a new ResetRepoError type when it decides
that its local mercurial state is invalid and that it needs to reopen the
repository.  The C++ code will catch this exception, restart the
hg_import_helper.py and retry the request.  (It will only retry once for each
request.)

The previous behavior of simply closing and re-opening the repository object
in Python has been problematic, as this has resulted in resource leaks.  The
hg_import_helper.py process itself ends up leaking memory when re-opening the
repository.  This also appears to result in many scmmemcache helper processes
being created and not cleaned up.  Presumably these are associated with the
old repository state and not cleaned up properly when we reopen the
repository.

Reviewed By: quark-zju

Differential Revision: D9510664

fbshipit-source-id: 449dfa9e2e21aabf8b3ce640749d32aa8f8e4052
2018-08-26 00:21:17 -07:00
..
cli fix some type errors in debug.py 2018-08-23 12:07:15 -07:00
docs store FileInode and TreeInode timestamps in the InodeTable 2018-05-22 11:22:19 -07:00
fs restart hg_import_helper.py when the repository needs to be reopened 2018-08-26 00:21:17 -07:00
hooks ensure .hg has read and search permissions for group/other 2018-06-11 22:33:11 -07:00
integration fix dirstate.walk()'s handling of ignored symlinks 2018-08-23 15:07:02 -07:00
py enable typechecking on Eden Python libraries 2018-08-03 15:07:00 -07:00
scripts unmount stale edenfs mounts in eden doctor 2018-01-19 11:06:51 -08:00
test-data put the overlay test data into a tar file 2018-06-20 18:36:27 -07:00
third-party Remove TARGETS files 2018-02-20 19:57:45 -08:00
win Started Eden for Windows and integrated hg store with it. 2018-08-21 17:53:38 -07:00
AUTODEPS Set up arc lint to run autodeps automatically for Eden. 2017-11-21 18:23:41 -08:00
Eden.project.toml Eden.project.toml file for Nuclide 2018-04-26 11:05:23 -07:00