Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/overrides.py @ 34310:575097b4dce0
largefiles: force an on-disk merge
Largefiles isn't a good candidate for in-memory merge (it uses a custom
dirstate, matcher, and the files might not fit in memory) so have it always
run an old-style merge.
Differential Revision: https://phab.mercurial-scm.org/D683
author | Phil Cohen <phillco@fb.com> |
---|---|
date | Thu, 14 Sep 2017 13:14:32 -0700 |
parents | c0ce60459d84 |
children | ac0cd81e2f83 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Thu Sep 14 13:14:32 2017 -0700 +++ b/hgext/largefiles/overrides.py Thu Sep 14 13:14:32 2017 -0700 @@ -1432,7 +1432,10 @@ lfdirstate.write() oldstandins = lfutil.getstandinsstate(repo) - + # Make sure the merge runs on disk, not in-memory. largefiles is not a + # good candidate for in-memory merge (large files, custom dirstate, + # matcher usage). + kwargs['wc'] = repo[None] result = orig(repo, node, branchmerge, force, *args, **kwargs) newstandins = lfutil.getstandinsstate(repo)