##// END OF EJS Templates
upgrade: clarify "aggressivemergedelta" handling...
Boris Feld -
r40872:64051af1 default
parent child Browse files
Show More
@@ -2287,7 +2287,7 b' class revlog(object):'
2287 2287 DELTAREUSEALL = {'always', 'samerevs', 'never', 'fulladd'}
2288 2288
2289 2289 def clone(self, tr, destrevlog, addrevisioncb=None,
2290 deltareuse=DELTAREUSESAMEREVS, deltabothparents=None):
2290 deltareuse=DELTAREUSESAMEREVS, forcedeltabothparents=None):
2291 2291 """Copy this revlog to another, possibly with format changes.
2292 2292
2293 2293 The destination revlog will contain the same revisions and nodes.
@@ -2321,9 +2321,9 b' class revlog(object):'
2321 2321 deltas will be recomputed if the delta's parent isn't a parent of the
2322 2322 revision.
2323 2323
2324 In addition to the delta policy, the ``deltabothparents`` argument
2325 controls whether to compute deltas against both parents for merges.
2326 By default, the current default is used.
2324 In addition to the delta policy, the ``forcedeltabothparents``
2325 argument controls whether to force compute deltas against both parents
2326 for merges. By default, the current default is used.
2327 2327 """
2328 2328 if deltareuse not in self.DELTAREUSEALL:
2329 2329 raise ValueError(_('value for deltareuse invalid: %s') % deltareuse)
@@ -2346,7 +2346,7 b' class revlog(object):'
2346 2346 elif deltareuse == self.DELTAREUSESAMEREVS:
2347 2347 destrevlog._lazydeltabase = False
2348 2348
2349 destrevlog._deltabothparents = deltabothparents or oldamd
2349 destrevlog._deltabothparents = forcedeltabothparents or oldamd
2350 2350
2351 2351 populatecachedelta = deltareuse in (self.DELTAREUSEALWAYS,
2352 2352 self.DELTAREUSESAMEREVS)
@@ -456,7 +456,7 b' def _revlogfrompath(repo, path):'
456 456 #reverse of "/".join(("data", path + ".i"))
457 457 return filelog.filelog(repo.svfs, path[5:-2])
458 458
459 def _copyrevlogs(ui, srcrepo, dstrepo, tr, deltareuse, deltabothparents):
459 def _copyrevlogs(ui, srcrepo, dstrepo, tr, deltareuse, forcedeltabothparents):
460 460 """Copy revlogs between 2 repos."""
461 461 revcount = 0
462 462 srcsize = 0
@@ -578,7 +578,7 b' def _copyrevlogs(ui, srcrepo, dstrepo, t'
578 578 ui.note(_('cloning %d revisions from %s\n') % (len(oldrl), unencoded))
579 579 oldrl.clone(tr, newrl, addrevisioncb=oncopiedrevision,
580 580 deltareuse=deltareuse,
581 deltabothparents=deltabothparents)
581 forcedeltabothparents=forcedeltabothparents)
582 582
583 583 info = newrl.storageinfo(storedsize=True)
584 584 datasize = info['storedsize'] or 0
General Comments 0
You need to be logged in to leave comments. Login now