contrib/perf.py
changeset 42461 74e2f4b609f6
parent 42460 e4c85e23c9ff
child 42462 bc4373babd04
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)