mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
17 lines
577 B
Python
17 lines
577 B
Python
|
# shallowverifier.py - shallow repository verifier
|
||
|
#
|
||
|
# Copyright 2015 Facebook, Inc.
|
||
|
#
|
||
|
# This software may be used and distributed according to the terms of the
|
||
|
# GNU General Public License version 2 or any later version.
|
||
|
|
||
|
from mercurial.verify import verifier
|
||
|
from mercurial.i18n import _
|
||
|
|
||
|
class shallowverifier(verifier):
|
||
|
def _verifyfiles(self, filenodes, filelinkrevs):
|
||
|
"""Skips files verification since repo's not guaranteed to have them"""
|
||
|
self.repo.ui.status(
|
||
|
_("skipping filelog check since remotefilelog is used\n"))
|
||
|
return 0, 0
|