Mercurial > hg
comparison contrib/perf.py @ 42461:74e2f4b609f6
perf: clarify some of the custom behavior of `perfrevlogwrite`
This reduce the chance of developers being surprised by special cases.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 12 Jun 2019 17:30:24 +0100 |
parents | e4c85e23c9ff |
children | bc4373babd04 |
comparison
equal
deleted
inserted
replaced
42460:e4c85e23c9ff | 42461:74e2f4b609f6 |
---|---|
2091 * `parent-1`: add from a delta to the first parent | 2091 * `parent-1`: add from a delta to the first parent |
2092 * `parent-2`: add from a delta to the second parent if it exists | 2092 * `parent-2`: add from a delta to the second parent if it exists |
2093 (use a delta from the first parent otherwise) | 2093 (use a delta from the first parent otherwise) |
2094 * `parent-smallest`: add from the smallest delta (either p1 or p2) | 2094 * `parent-smallest`: add from the smallest delta (either p1 or p2) |
2095 * `storage`: add from the existing precomputed deltas | 2095 * `storage`: add from the existing precomputed deltas |
2096 | |
2097 Note: This performance command measures performance in a custom way. As a | |
2098 result some of the global configuration of the 'perf' command does not | |
2099 apply to it: | |
2100 | |
2101 * ``pre-run``: disabled | |
2102 | |
2103 * ``profile-benchmark``: disabled | |
2104 | |
2105 * ``run-limits``: disabled use --count instead | |
2096 """ | 2106 """ |
2097 opts = _byteskwargs(opts) | 2107 opts = _byteskwargs(opts) |
2098 | 2108 |
2099 rl = cmdutil.openrevlog(repo, b'perfrevlogwrite', file_, opts) | 2109 rl = cmdutil.openrevlog(repo, b'perfrevlogwrite', file_, opts) |
2100 rllen = getlen(ui)(rl) | 2110 rllen = getlen(ui)(rl) |