obscache: update the cache key in place
Instead of computing the key in place, we update the existing one using the
data used for the incremental update of the content. This will help reaching
purely incremental cache eventually.
The 'getcachekey' function is dropped as it is no longer used.
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