comparison mercurial/commands.py @ 42187:90d48c1c6224

commands: use byteskwargs() in verify() Otherwise Python 3 complains about the missing key. Differential Revision: https://phab.mercurial-scm.org/D6294
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 21 Apr 2019 09:34:16 -0700
parents 496ac8a02380
children 8d14d91584f1
comparison
equal deleted inserted replaced
42186:fd384911f51b 42187:90d48c1c6224
6165 for more information about recovery from corruption of the 6165 for more information about recovery from corruption of the
6166 repository. 6166 repository.
6167 6167
6168 Returns 0 on success, 1 if errors are encountered. 6168 Returns 0 on success, 1 if errors are encountered.
6169 """ 6169 """
6170 opts = pycompat.byteskwargs(opts)
6171
6170 level = None 6172 level = None
6171 if opts['full']: 6173 if opts['full']:
6172 level = verifymod.VERIFY_FULL 6174 level = verifymod.VERIFY_FULL
6173 return hg.verify(repo, level) 6175 return hg.verify(repo, level)
6174 6176