Debian Codegraph @

hgext/remotefilelog/shallowverifier.py

raw
1 # shallowverifier.py - shallow repository verifier
2 #
3 # Copyright 2015 Facebook, Inc.
4 #
5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version.
7
8 from __future__ import annotations
9
10 from mercurial.i18n import _
11 from mercurial import verify
12
13
14 class shallowverifier(verify.verifier):
15 def _verifyfiles(self, filenodes, filelinkrevs):
16 """Skips files verification since repo's not guaranteed to have them"""
17 self.repo.ui.status(
18 _(b"skipping filelog check since remotefilelog is used\n")
19 )
20 return 0, 0