bisect-kit: distinguish version format validation for intra versions
BUG=None
TEST=bisect chromeos local build, then ./bisect_cros_repo.py run <intra_rev>
Change-Id: Idef151fbaab30b0b353a22d03ff38fdf05811dc3
Reviewed-on: https://chromium-review.googlesource.com/1206250
Commit-Ready: Kuang-che Wu <kcwu@chromium.org>
Tested-by: Kuang-che Wu <kcwu@chromium.org>
Reviewed-by: Chi-Ngai Wan <cnwan@google.com>
diff --git a/bisect_cros_repo.py b/bisect_cros_repo.py
index 549ddcb..8a91708 100755
--- a/bisect_cros_repo.py
+++ b/bisect_cros_repo.py
@@ -37,6 +37,8 @@
class ChromeOSRepoDomain(core.BisectDomain):
"""BisectDomain for ChromeOS code changes."""
revtype = staticmethod(cros_util.argtype_cros_version)
+ intra_revtype = staticmethod(
+ codechange.argtype_intra_rev(cros_util.argtype_cros_version))
help = globals()['__doc__']
@staticmethod