Patchwork D6900: upgrade: document DELTAREUSEFULLADD in revlog.clone

login
register
mail settings
Submitter phabricator
Date Sept. 27, 2019, 8:22 p.m.
Message ID <differential-rev-PHID-DREV-ya7xdiplecnc26uxs3in-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41813/
State Superseded
Headers show

Comments

phabricator - Sept. 27, 2019, 8:22 p.m.
marmoute created this revision.
Herald added a reviewer: indygreg.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The documentation of the `debugupgraderepo` command was updated when
  `re-delta-fulladd` was introduced. However, the docstring of the `revlog.clone`
  method was not.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6900

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -2360,6 +2360,10 @@ 
            Deltas will never be reused. This is the slowest mode of execution.
            This mode can be used to recompute deltas (e.g. if the diff/delta
            algorithm changes).
+        DELTAREUSEFULLADD
+           Revision will be re-added as if their were new content. This is
+           slower than DELTAREUSEALWAYS but allow more mechanism to kicks in.
+           eg: large file detection and handling.
 
         Delta computation can be slow, so the choice of delta reuse policy can
         significantly affect run time.