summaryrefslogtreecommitdiffstats
path: root/Tools/hg/hgtouch.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-23404: make touch becomes make regen-all (#1405) (#1461)Victor Stinner2017-05-041-129/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-23404: make touch becomes make regen-all (#1405) Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-importlib: Python/importlib_external.h and Python/importlib.h - regen-opcode: Include/opcode.h - regen-opcode-targets: Python/opcode_targets.h - regen-typeslots: Objects/typeslots.inc * Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make" default target building Python. (cherry picked from commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b) * bpo-30273: Update sysconfig (#1464) The AST_H_DIR variable was removed from Makefile.pre.in by the commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b (bpo-23404). AST_H_DIR was hardcoded to "Include", so replace the removed variable by its content. Remove also ASDLGEN variable from sysconfig example since this variable was also removed. (cherry picked from commit b109a1d3360fc4bb87b9887264e3634632d392ca)
* Remove legacy "from __future__ import with_statement" lines.Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-081-1/+0
|
* hgtouch: remove meta-variable from option specGeorg Brandl2014-03-091-1/+1
| | | | | This fifth tuple element is unsupported in an old hg version still used on one buildbot, and it is not really necessary (only used in touch --help).
* Closes #19966: allow hgtouch to operate on a base dir that is != the repo root.Georg Brandl2014-01-271-12/+23
|
* Issue #19106: Touch generated files to be 1s newer than their youngest source.Martin v. Löwis2013-09-301-11/+26
|
* let this work with system Python 2.5Benjamin Peterson2013-09-271-0/+1
|
* use wfile apiBenjamin Peterson2012-04-271-4/+8
|
* Issue #14642: Add "hg touch" extension, and "make touch" target.Martin v. Loewis2012-04-271-0/+99