# HG changeset patch # User Manuel Jacob # Date 1653819924 -7200 # Node ID 223d55086d7c80960264a7416749213387869a4d # Parent 311fcc5a65f69c06e2fc0908fdd3a9fc20da19f9 cleanup: rename some functions to avoid redefinitions diff -r 311fcc5a65f6 -r 223d55086d7c mercurial/debugcommands.py --- a/mercurial/debugcommands.py Sat May 28 22:08:13 2022 +0200 +++ b/mercurial/debugcommands.py Sun May 29 12:25:24 2022 +0200 @@ -2806,7 +2806,7 @@ [(b'r', b'rev', b'', _(b'revision to debug'), _(b'REV'))], _(b'[-r REV]'), ) -def debugp1copies(ui, repo, **opts): +def debugp2copies(ui, repo, **opts): """dump copy information compared to p2""" opts = pycompat.byteskwargs(opts) diff -r 311fcc5a65f6 -r 223d55086d7c tests/hghave.py --- a/tests/hghave.py Sat May 28 22:08:13 2022 +0200 +++ b/tests/hghave.py Sun May 29 12:25:24 2022 +0200 @@ -198,7 +198,7 @@ @check("pyoxidizer", "running with pyoxidizer build as 'hg'") -def has_rhg(): +def has_pyoxidizer(): return 'PYOXIDIZED_INSTALLED_AS_HG' in os.environ @@ -408,7 +408,7 @@ @check("pygit2", "pygit2 Python library") -def has_git(): +def has_pygit2(): try: import pygit2 @@ -750,7 +750,7 @@ @check("network-io", "whether tests are allowed to access 3rd party services") -def has_test_repo(): +def has_network_io(): t = os.environ.get("HGTESTS_ALLOW_NETIO") return t == "1"