##// END OF EJS Templates
cleanup: rename some functions to avoid redefinitions
Manuel Jacob -
r50176:223d5508 default
parent child Browse files
Show More
@@ -2806,7 +2806,7 b' def debugp1copies(ui, repo, **opts):'
2806 [(b'r', b'rev', b'', _(b'revision to debug'), _(b'REV'))],
2806 [(b'r', b'rev', b'', _(b'revision to debug'), _(b'REV'))],
2807 _(b'[-r REV]'),
2807 _(b'[-r REV]'),
2808 )
2808 )
2809 def debugp1copies(ui, repo, **opts):
2809 def debugp2copies(ui, repo, **opts):
2810 """dump copy information compared to p2"""
2810 """dump copy information compared to p2"""
2811
2811
2812 opts = pycompat.byteskwargs(opts)
2812 opts = pycompat.byteskwargs(opts)
@@ -198,7 +198,7 b' def has_rhg():'
198
198
199
199
200 @check("pyoxidizer", "running with pyoxidizer build as 'hg'")
200 @check("pyoxidizer", "running with pyoxidizer build as 'hg'")
201 def has_rhg():
201 def has_pyoxidizer():
202 return 'PYOXIDIZED_INSTALLED_AS_HG' in os.environ
202 return 'PYOXIDIZED_INSTALLED_AS_HG' in os.environ
203
203
204
204
@@ -408,7 +408,7 b' def getgitversion():'
408
408
409
409
410 @check("pygit2", "pygit2 Python library")
410 @check("pygit2", "pygit2 Python library")
411 def has_git():
411 def has_pygit2():
412 try:
412 try:
413 import pygit2
413 import pygit2
414
414
@@ -750,7 +750,7 b' def has_test_repo():'
750
750
751
751
752 @check("network-io", "whether tests are allowed to access 3rd party services")
752 @check("network-io", "whether tests are allowed to access 3rd party services")
753 def has_test_repo():
753 def has_network_io():
754 t = os.environ.get("HGTESTS_ALLOW_NETIO")
754 t = os.environ.get("HGTESTS_ALLOW_NETIO")
755 return t == "1"
755 return t == "1"
756
756
General Comments 0
You need to be logged in to leave comments. Login now