Mercurial > hg
comparison tests/run-tests.py @ 41758:15d3facfa40a
tests: use () instead of \ to wrap lines
This should auto-format more consistently, and is slightly more
typical Python.
Differential Revision: https://phab.mercurial-scm.org/D5992
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 13 Jan 2019 20:13:22 -0500 |
parents | 7855a949b7c2 |
children | aaad36b88298 |
comparison
equal
deleted
inserted
replaced
41757:062e9ebc3215 | 41758:15d3facfa40a |
---|---|
1406 script.append(b'echo %s %d $?\n' % (salt, line)) | 1406 script.append(b'echo %s %d $?\n' % (salt, line)) |
1407 activetrace = [] | 1407 activetrace = [] |
1408 session = str(uuid.uuid4()) | 1408 session = str(uuid.uuid4()) |
1409 if PYTHON3: | 1409 if PYTHON3: |
1410 session = session.encode('ascii') | 1410 session = session.encode('ascii') |
1411 hgcatapult = os.getenv('HGTESTCATAPULTSERVERPIPE') or \ | 1411 hgcatapult = (os.getenv('HGTESTCATAPULTSERVERPIPE') or |
1412 os.getenv('HGCATAPULTSERVERPIPE') | 1412 os.getenv('HGCATAPULTSERVERPIPE')) |
1413 def toggletrace(cmd=None): | 1413 def toggletrace(cmd=None): |
1414 if not hgcatapult or hgcatapult == os.devnull: | 1414 if not hgcatapult or hgcatapult == os.devnull: |
1415 return | 1415 return |
1416 | 1416 |
1417 if activetrace: | 1417 if activetrace: |