comparison mercurial/hg.py @ 42155:57539e5ea2e0

verify: introduce a notion of "level" Some checks are slower than others, to help the user to run the checks he needs, we are about to introduce new flag to select faster vs deeper runs. This put the scaffolding in place to do this.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 17 Apr 2019 01:12:21 +0200
parents 2a3c0106ded9
children 3bc400ccbf99
comparison
equal deleted inserted replaced
42154:f2fe7cf4ebb6 42155:57539e5ea2e0
1090 displayer.close() 1090 displayer.close()
1091 cmdutil.outgoinghooks(ui, repo, other, opts, o) 1091 cmdutil.outgoinghooks(ui, repo, other, opts, o)
1092 recurse() 1092 recurse()
1093 return 0 # exit code is zero since we found outgoing changes 1093 return 0 # exit code is zero since we found outgoing changes
1094 1094
1095 def verify(repo): 1095 def verify(repo, level=None):
1096 """verify the consistency of a repository""" 1096 """verify the consistency of a repository"""
1097 ret = verifymod.verify(repo) 1097 ret = verifymod.verify(repo, level=level)
1098 1098
1099 # Broken subrepo references in hidden csets don't seem worth worrying about, 1099 # Broken subrepo references in hidden csets don't seem worth worrying about,
1100 # since they can't be pushed/pulled, and --hidden can be used if they are a 1100 # since they can't be pushed/pulled, and --hidden can be used if they are a
1101 # concern. 1101 # concern.
1102 1102