rewrite: use cmdutil.logmessage instead of ad-hoc methods
The logic for handling the --message and --logfile options is already
in core hg in the cmdutil.logmessage function. This patch removes this
duplicate logic from Evolve and just calls the core function.
PYTHON=pythonHG=`whichhg`VERSION=$(shellpythonsetup.py--version)help:@echo'Commonly used make targets:'@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:helptests:cdtests&&$(PYTHON)run-tests.py--with-hg=$(HG)$(TESTFLAGS)test-%:cdtests&&$(PYTHON)run-tests.py--with-hg=$(HG)$(TESTFLAGS)$@tests-%:@echo"Path to crew repo is $(CREW) - set this with CREW= if needed."hg-R$(CREW)checkout$$(echo$@|seds/tests-//)&&\(cd$(CREW);$(MAKE)clean)&&\cdtests&&$(PYTHON)$(CREW)/tests/run-tests.py$(TESTFLAGS)all-version-tests:tests-1.3.1 tests-1.4.3 tests-1.5.4 \tests-1.6.4 tests-1.7.5 tests-1.8 tests-tipdeb-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`.PHONY:testsall-version-tests