8294748: Cleanup unneeded references to hg

Reviewed-by: erikj, clanger
This commit is contained in:
Matthias Baesken 2022-10-05 07:25:49 +00:00
parent 43dbf5899b
commit be82cff625
7 changed files with 8 additions and 18 deletions

View File

@ -1185,13 +1185,11 @@ ifeq ($(TEST_OPTS_JCOV), true)
JCOV_SOURCE_DIFF := $(JCOV_OUTPUT_DIR)/source_diff JCOV_SOURCE_DIFF := $(JCOV_OUTPUT_DIR)/source_diff
JCOV_DIFF_COVERAGE_REPORT := $(JCOV_OUTPUT_DIR)/diff_coverage_report JCOV_DIFF_COVERAGE_REPORT := $(JCOV_OUTPUT_DIR)/diff_coverage_report
ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), ) ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), )
DIFF_COMMAND := $(HG) -R $(TOPDIR) diff -r $(TEST_OPTS_JCOV_DIFF_CHANGESET) > $(JCOV_SOURCE_DIFF)
else ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), )
DIFF_COMMAND := $(GIT) -C $(TOPDIR) diff $(TEST_OPTS_JCOV_DIFF_CHANGESET) > $(JCOV_SOURCE_DIFF) DIFF_COMMAND := $(GIT) -C $(TOPDIR) diff $(TEST_OPTS_JCOV_DIFF_CHANGESET) > $(JCOV_SOURCE_DIFF)
else else
$(info Error: Must be either hg or git source tree for diff coverage.) $(info Error: Must be a git source tree for diff coverage.)
$(error Neither hg nor git source tree.) $(error No git source tree.)
endif endif
jcov-gen-diffcoverage: jcov-stop-grabber jcov-gen-diffcoverage: jcov-stop-grabber

View File

@ -169,7 +169,6 @@ ZIPEXE := zip
UNZIP := unzip UNZIP := unzip
EXPR := expr EXPR := expr
FILE := file FILE := file
HG := hg
ULIMIT := ulimit ULIMIT := ulimit
ifeq ($(OPENJDK_BUILD_OS), windows) ifeq ($(OPENJDK_BUILD_OS), windows)

View File

@ -42,11 +42,7 @@ $(eval $(call IncludeCustomExtension, SourceRevision-pre.gmk))
STORED_SOURCE_REVISION := $(TOPDIR)/.src-rev STORED_SOURCE_REVISION := $(TOPDIR)/.src-rev
USE_SCM := false USE_SCM := false
ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), ) ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), )
USE_SCM := true
SCM_DIR := .hg
ID_COMMAND := $(PRINTF) "hg:%s" "$$($(HG) id -i)"
else ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), )
USE_SCM := true USE_SCM := true
SCM_DIR := .git SCM_DIR := .git
ID_COMMAND := $(PRINTF) "git:%s%s\n" \ ID_COMMAND := $(PRINTF) "git:%s%s\n" \
@ -85,7 +81,7 @@ ifeq ($(USE_SCM), true)
REPO_REVISIONS += $$(SUPPORT_OUTPUTDIR)/src-rev/$$($1_FILENAME) REPO_REVISIONS += $$(SUPPORT_OUTPUTDIR)/src-rev/$$($1_FILENAME)
endef endef
# Setup rules for all repos. This makes sure all the "hg id" calls are made # Setup rules for all repos. This makes sure all the "git log" calls are made
# in parallel. # in parallel.
$(foreach repo, $(call FindAllReposRel), \ $(foreach repo, $(call FindAllReposRel), \
$(eval $(call SetupGetRevisionForRepo, $(repo))) \ $(eval $(call SetupGetRevisionForRepo, $(repo))) \

View File

@ -453,7 +453,7 @@ AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS],
# in the source tree when configure runs # in the source tree when configure runs
file_to_test="$TOPDIR/Makefile" file_to_test="$TOPDIR/Makefile"
if test `$STAT -c '%a' "$file_to_test"` -lt 400; then if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
AC_MSG_ERROR([Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin.]) AC_MSG_ERROR([Bad file permissions on src files. This is usually caused by cloning the repositories with non cygwin tools in a directory not created in cygwin.])
fi fi
fi fi
]) ])

View File

@ -342,7 +342,6 @@ AC_DEFUN_ONCE([BASIC_SETUP_COMPLEX_TOOLS],
UTIL_LOOKUP_PROGS(READELF, greadelf readelf) UTIL_LOOKUP_PROGS(READELF, greadelf readelf)
UTIL_LOOKUP_PROGS(DOT, dot) UTIL_LOOKUP_PROGS(DOT, dot)
UTIL_LOOKUP_PROGS(HG, hg)
UTIL_LOOKUP_PROGS(STAT, stat) UTIL_LOOKUP_PROGS(STAT, stat)
UTIL_LOOKUP_PROGS(TIME, time) UTIL_LOOKUP_PROGS(TIME, time)
UTIL_LOOKUP_PROGS(FLOCK, flock) UTIL_LOOKUP_PROGS(FLOCK, flock)

View File

@ -769,7 +769,6 @@ READELF:=@READELF@
EXPR:=@EXPR@ EXPR:=@EXPR@
FILE:=@FILE@ FILE:=@FILE@
DOT:=@DOT@ DOT:=@DOT@
HG:=@HG@
GIT:=@GIT@ GIT:=@GIT@
OBJCOPY:=@OBJCOPY@ OBJCOPY:=@OBJCOPY@
SETFILE:=@SETFILE@ SETFILE:=@SETFILE@

View File

@ -127,14 +127,13 @@ endef
# the build was created from # the build was created from
SOURCE_REVISION_TRACKER := $(SUPPORT_OUTPUTDIR)/src-rev/source-revision-tracker SOURCE_REVISION_TRACKER := $(SUPPORT_OUTPUTDIR)/src-rev/source-revision-tracker
# Locate all hg repositories included in the forest, as absolute paths # Locate all sourcecode repositories included in the forest, as absolute paths
FindAllReposAbs = \ FindAllReposAbs = \
$(strip $(sort $(dir $(filter-out $(TOPDIR)/build/%, $(wildcard \ $(strip $(sort $(dir $(filter-out $(TOPDIR)/build/%, $(wildcard \
$(addprefix $(TOPDIR)/, .hg */.hg */*/.hg */*/*/.hg */*/*/*/.hg) \
$(addprefix $(TOPDIR)/, .git */.git */*/.git */*/*/.git */*/*/*/.git) \ $(addprefix $(TOPDIR)/, .git */.git */*/.git */*/*/.git */*/*/*/.git) \
))))) )))))
# Locate all hg repositories included in the forest, as relative paths # Locate all sourcecode repositories included in the forest, as relative paths
FindAllReposRel = \ FindAllReposRel = \
$(strip $(subst $(TOPDIR)/,.,$(patsubst $(TOPDIR)/%/, %, $(FindAllReposAbs)))) $(strip $(subst $(TOPDIR)/,.,$(patsubst $(TOPDIR)/%/, %, $(FindAllReposAbs))))