[PATCH] perfrevlogwrite: fix a typo in the option name

Boris Feld boris.feld at octobus.net
Thu Dec 20 09:21:42 UTC 2018


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1545184668 -3600
#      Wed Dec 19 02:57:48 2018 +0100
# Node ID 0cfe1357cdc677e1b2d44243e29d0e1882c7156b
# Parent  4277e20cfec410dc1a4943c5f9a73813076dc804
# EXP-Topic sparse-revlog-corner-cases
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 0cfe1357cdc6
perfrevlogwrite: fix a typo in the option name

The submitted patches was apparently damaged, and a 's' was missing.

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -1747,7 +1747,7 @@ def perfrevlogwrite(ui, repo, file_=None
 
     lazydeltabase = opts['lazydeltabase']
     source = opts['source']
-    clearcaches = opts['clear_cache']
+    clearcaches = opts['clear_caches']
     validsource = (b'full', b'parent-1', b'parent-2', b'parent-smallest',
                    b'storage')
     if source not in validsource:


More information about the Mercurial-devel mailing list