# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1533221162 -7200
#      Thu Aug 02 16:46:02 2018 +0200
# Node ID ae97d60ca826d2506ce1ab415abc770cf42f6159
# Parent  0ff6b5924aa78bb2f240f8eddde289022a6a3a9f
repo-scan: detect '.benchrepo' instead of looking for repository

One more step toward the new world.

diff --git a/benchmarks/utils.py b/benchmarks/utils.py
--- a/benchmarks/utils.py
+++ b/benchmarks/utils.py
@@ -8,11 +8,14 @@
 import sys
 from functools import wraps
 
+REPO_SUFFIX='.benchrepo'
+
 BASEDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))
 STRIP_VARIANTS_PATH = os.path.join(BASEDIR, "partial-sets.yaml")
 REPOS_DIR = os.path.join(BASEDIR, "repos")
-REPOS = sorted(d for d in os.listdir(REPOS_DIR)
-         if os.path.isdir(os.path.join(REPOS_DIR, d, ".hg")))
+REPOS_DATA = sorted(d for d in os.listdir(REPOS_DIR)
+               if d.endswith(REPO_SUFFIX))
+REPOS = [r[:-len(REPO_SUFFIX)] for r in REPOS_DATA]
 # TODO fix
 # with open(STRIP_VARIANTS_PATH) as f:
 #     STRIP_VARIANTS = yaml.load(f.read())["partial-sets"]