Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 26118:049005de325e
revlog: add an aggressivemergedelta option
This adds an option for delta'ing against both p1 and p2 when applying merge
revisions and picking whichever is smallest.
Some before and after stats on manifest.d size:
internal large repo:
before: 1.2 GB
after: 930 MB
mozilla-central:
before: 261 MB
after: 92 MB
author | Durham Goode <durham@fb.com> |
---|---|
date | Sun, 30 Aug 2015 14:03:32 -0700 |
parents | 800e090e9c64 |
children | 51a30cae2bff |
comparison
equal
deleted
inserted
replaced
26117:4dc5b51f38fe | 26118:049005de325e |
---|---|
352 self.svfs.options['maxchainlen'] = maxchainlen | 352 self.svfs.options['maxchainlen'] = maxchainlen |
353 # experimental config: format.manifestcachesize | 353 # experimental config: format.manifestcachesize |
354 manifestcachesize = self.ui.configint('format', 'manifestcachesize') | 354 manifestcachesize = self.ui.configint('format', 'manifestcachesize') |
355 if manifestcachesize is not None: | 355 if manifestcachesize is not None: |
356 self.svfs.options['manifestcachesize'] = manifestcachesize | 356 self.svfs.options['manifestcachesize'] = manifestcachesize |
357 # experimental config: format.aggressivemergedeltas | |
358 aggressivemergedeltas = self.ui.configbool('format', | |
359 'aggressivemergedeltas', False) | |
360 self.svfs.options['aggressivemergedeltas'] = aggressivemergedeltas | |
357 | 361 |
358 def _writerequirements(self): | 362 def _writerequirements(self): |
359 scmutil.writerequires(self.vfs, self.requirements) | 363 scmutil.writerequires(self.vfs, self.requirements) |
360 | 364 |
361 def _checknested(self, path): | 365 def _checknested(self, path): |