hgext/remotefilelog/shallowverifier.py
author Augie Fackler <augie@google.com>
Tue, 18 Jun 2019 09:57:06 -0400
changeset 42497 df1419c5756a
parent 40495 3a333a582d7b
child 43076 2372284d9457
permissions -rw-r--r--
remotefilelog: tell runbgcommand to not block on child process startup These two invocations will always find a binary because they're re-running hg. As a result, we can skip waiting for the subprocess to start running and save a little bit of wall-time. Differential Revision: https://phab.mercurial-scm.org/D6539

# 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 __future__ import absolute_import

from mercurial.i18n import _
from mercurial import verify

class shallowverifier(verify.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