sapling/hgext/hggit
Durham Goode e348c3c98c hggit: use transactions during git import
Summary:
Previously hggit used a single transaction for each commit it imported.
This added a lot of over head, such as writing the fncache every time and
committing to sql every time.

Instead, let's use a transaction that lasts a while. We'll tie it to the
existing gitmap save logic, so that we commit commits to disk before writing the
map file (so the map file never references commits that don't exist).

Reviewed By: quark-zju

Differential Revision: D9210162

fbshipit-source-id: 9b1302dfc824055742c4194dfaea7e172e5db6b4
2018-08-07 18:07:08 -07:00
..
help hggit: internalize extension 2018-01-09 06:08:01 -08:00
__init__.py hggit: use transactions during git import 2018-08-07 18:07:08 -07:00
_ssh.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
compat.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
git2hg.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
git_handler.py hggit: use transactions during git import 2018-08-07 18:07:08 -07:00
gitrepo.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
hg2git.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
hgrepo.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
overlay.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
util.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
verify.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00