@property
    def _empty(self):
        # TODO: Following raises errors when using InMemoryChangeset...
        # return len(self._repo.changelog) == 0
        return len(self.revisions) == 0
Rejects configuration file with missing metrics attribute.
dataset/ETHPy150Open codeinn/vcs/vcs/backends/hg/repository.py/MercurialRepository._empty--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/benchmark/test/test_script.py/ValidationTests.test_missing_metrics