tests/sitecustomize.py
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Thu, 20 Mar 2014 00:10:45 +0900
changeset 20786 d666da075b91
parent 14971 0b21ae0a2366
child 24505 031947baf4d0
permissions -rw-r--r--
mq: omit ".hgsubstate" from qnew/qrefresh target list for consistent node hash Before this patch, even if specified file patterns and -I/-X options cause listing ".hgsubstate" up in the target list, qnew/qrefresh put ".hgsubstate" into the target list individually and forcibly. This changes how many times ".hgsubstate" appear in the target list according to run-time conditions, and causes inconsistent node hash, even though revision content is same, because node hash calculation uses the specified target list directly (without duplication check or so). This patch always omits ".hgsubstate" from qnew/qrefresh target list for consistent node hash. This omitting doesn't miss including ".hgsubstate" changes, because: - "localrepository.commit()" puts ".hgsubstate" into the target list for "commitctx()" forcibly if needed - "mq.putsubstate2changes()" puts ".hgsubstate" into the target list for "patch.diff()" if it is not yet listed up

try:
    import coverage
    getattr(coverage, 'process_startup', lambda: None)()
except ImportError:
    pass