compat: drop compatibility for Mercurial <= 4.0
We are dropping compatibility with older mercurial version. This will help us
to clean up the code base.
VERSION=$(shellpythonsetup.py--version)PYTHON=pythonall:helpdeb-prepare:pythonsetup.pysdist--dist-dir..mv-f../hg-evolve-$(VERSION).tar.gz../mercurial-evolve_$(VERSION).orig.tar.gztarxf../mercurial-evolve_$(VERSION).orig.tar.gzrm-rf../mercurial-evolve_$(VERSION).origmvhg-evolve-$(VERSION)../mercurial-evolve_$(VERSION).origcp-rdebian/../mercurial-evolve_$(VERSION).orig/@cd../mercurial-evolve_$(VERSION).orig&&echo'debian build directory ready at'`pwd`install-home:$(PYTHON)setup.pyinstall--home="$(HOME)"--prefix=""--force# test targetsTESTFLAGS?=$(shellecho$$HGTESTFLAGS)HGTESTS=$(HGROOT)/testshelp:@echo'Commonly used make targets:'@echo' deb-prepare - prepare the build of a debian package'@echo' tests - run all tests in the automatic test suite'@echo' all-version-tests - run all tests against many hg versions'@echo' tests-%s - run all tests in the specified hg version'all:help_check_hgroot:ifeq ($(HGROOT),)$(errorHGROOTisnotsettotherootofthehgsourcetree)endiftests:_check_hgrootcdtests&&$(PYTHON)$(HGTESTS)/run-tests.py$(TESTFLAGS)# /!\ run outside of the compatibility branch output test will likely failstest-%:_check_hgrootcdtests&&$(PYTHON)$(HGTESTS)/run-tests.py$(TESTFLAGS)$@tests-%:_check_hgroothg-R$(HGROOT)checkout$$(echo$@|seds/tests-//)&&\(cd$(HGROOT);$(MAKE)clean)&&\cdtests&&$(PYTHON)$(HGTESTS)/run-tests.py$(TESTFLAGS)# build a script to extract declared versionall-version-tests:tests-@.PHONY:testsall-version-tests