comparison contrib/perf.py @ 50832:193a6e9a56f3

wrapfunction: use sysstr instead of bytes as argument in "perf" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 10 Jul 2023 19:31:26 +0200
parents 0bba730005df
children cf0502231d56
comparison
equal deleted inserted replaced
50831:c3d7a0828b7b 50832:193a6e9a56f3
4419 b"This version doesn't support --dir option", 4419 b"This version doesn't support --dir option",
4420 hint=b"use 3.5 or later", 4420 hint=b"use 3.5 or later",
4421 ) 4421 )
4422 return orig(repo, cmd, file_, opts) 4422 return orig(repo, cmd, file_, opts)
4423 4423
4424 extensions.wrapfunction(cmdutil, b'openrevlog', openrevlog) 4424 name = _sysstr(b'openrevlog')
4425 extensions.wrapfunction(cmdutil, name, openrevlog)
4425 4426
4426 4427
4427 @command( 4428 @command(
4428 b'perf::progress|perfprogress', 4429 b'perf::progress|perfprogress',
4429 formatteropts 4430 formatteropts