Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
test-exchange-obsmarkers-case-D1.t | test-exchange-obsmarkers-case-D1.t | ||||
test-exchange-obsmarkers-case-D2.t | test-exchange-obsmarkers-case-D2.t | ||||
test-exchange-obsmarkers-case-D3.t | test-exchange-obsmarkers-case-D3.t | ||||
test-exchange-obsmarkers-case-D4.t | test-exchange-obsmarkers-case-D4.t | ||||
test-execute-bit.t | test-execute-bit.t | ||||
test-export.t | test-export.t | ||||
test-extdata.t | test-extdata.t | ||||
test-extdiff.t | test-extdiff.t | ||||
test-extensions-wrapfunction.py | |||||
test-extra-filelog-entry.t | test-extra-filelog-entry.t | ||||
test-filebranch.t | test-filebranch.t | ||||
test-filecache.py | test-filecache.py | ||||
test-filelog.py | test-filelog.py | ||||
test-fileset-generated.t | test-fileset-generated.t | ||||
test-fix-topology.t | test-fix-topology.t | ||||
test-flags.t | test-flags.t | ||||
test-generaldelta.t | test-generaldelta.t |
try: | try: | ||||
result = extensions.unwrapfunction(dummy, 'getstack', w) | result = extensions.unwrapfunction(dummy, 'getstack', w) | ||||
msg = str(dummy.getstack()) | msg = str(dummy.getstack()) | ||||
except (ValueError, IndexError) as e: | except (ValueError, IndexError) as e: | ||||
msg = e.__class__.__name__ | msg = e.__class__.__name__ | ||||
print('unwrap %s: %s: %s' % (getid(w), getid(result), msg)) | print('unwrap %s: %s: %s' % (getid(w), getid(result), msg)) | ||||
batchwrap(wrappers + [wrappers[0]]) | batchwrap(wrappers + [wrappers[0]]) | ||||
batchunwrap([(wrappers[i] if i >= 0 else None) | batchunwrap([(wrappers[i] if i is not None and i >= 0 else None) | ||||
for i in [3, None, 0, 4, 0, 2, 1, None]]) | for i in [3, None, 0, 4, 0, 2, 1, None]]) | ||||
wrap0 = extensions.wrappedfunction(dummy, 'getstack', wrappers[0]) | wrap0 = extensions.wrappedfunction(dummy, 'getstack', wrappers[0]) | ||||
wrap1 = extensions.wrappedfunction(dummy, 'getstack', wrappers[1]) | wrap1 = extensions.wrappedfunction(dummy, 'getstack', wrappers[1]) | ||||
# Use them in a different order from how they were created to check that | # Use them in a different order from how they were created to check that | ||||
# the wrapping happens in __enter__, not in __init__ | # the wrapping happens in __enter__, not in __init__ | ||||
print('context manager', dummy.getstack()) | print('context manager', dummy.getstack()) |