Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 50966:45a53fc82ab2
debuginstall: migrate `opts` to native kwargs
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 21 Aug 2023 17:18:56 -0400 |
parents | 1cfc49e342c3 |
children | 0cf89b099d42 |
comparison
equal
deleted
inserted
replaced
50965:1cfc49e342c3 | 50966:45a53fc82ab2 |
---|---|
1954 def debuginstall(ui, **opts): | 1954 def debuginstall(ui, **opts): |
1955 """test Mercurial installation | 1955 """test Mercurial installation |
1956 | 1956 |
1957 Returns 0 on success. | 1957 Returns 0 on success. |
1958 """ | 1958 """ |
1959 opts = pycompat.byteskwargs(opts) | |
1960 | |
1961 problems = 0 | 1959 problems = 0 |
1962 | 1960 |
1963 fm = ui.formatter(b'debuginstall', opts) | 1961 fm = ui.formatter(b'debuginstall', pycompat.byteskwargs(opts)) |
1964 fm.startitem() | 1962 fm.startitem() |
1965 | 1963 |
1966 # encoding might be unknown or wrong. don't translate these messages. | 1964 # encoding might be unknown or wrong. don't translate these messages. |
1967 fm.write(b'encoding', b"checking encoding (%s)...\n", encoding.encoding) | 1965 fm.write(b'encoding', b"checking encoding (%s)...\n", encoding.encoding) |
1968 err = None | 1966 err = None |