Mercurial > evolve
view tests/hghaveaddon.py @ 5776:453ba695c3d4
tests: add test for in-memory evolve, not actually in-memory yet
The next patch will make `hg evolve` use in-memory merge. This patch
adds a test case for that. I'm adding it before the implementation so
it's easy to see what the behavior change is.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 01 Oct 2020 12:34:36 -0700 |
parents | f2139537c2be |
children | e41b99cec0c2 |
line wrap: on
line source
import hghave @hghave.check("docgraph-ext", "Extension to generate graph from repository") def docgraph(): try: import hgext.docgraph hgext.docgraph.cmdtable # trigger import except ImportError: try: import hgext3rd.docgraph hgext3rd.docgraph.cmdtable # trigger import except ImportError: return False return True @hghave.check("flake8", "Flake8 python linter") def has_flake8(): try: import flake8 flake8.__version__ except ImportError: return False else: return True @hghave.check("check-manifest", "check-manifest MANIFEST.in checking tool") def has_check_manifest(): return hghave.matchoutput('check-manifest --version 2>&1', br'check-manifest version')