Mercurial > hgsubversion
comparison tests/test_unaffected_core.py @ 1545:306187268f59
test_unaffected_core: be compatible with upstream change
Upstream change 02845f7441af and d9aba3730d30 now requires certain
`req.earlyoptions` items to be set before entering `dispatch._dispatch`.
Update the test code to be compatible with it. This should be compatible
with upstream changeset 8fbb26.
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 04 Dec 2017 18:13:00 -0800 |
parents | 38be7a6b6def |
children | d55c9d0ba350 |
comparison
equal
deleted
inserted
replaced
1544:ac40236a06e3 | 1545:306187268f59 |
---|---|
12 | 12 |
13 def _dispatch(ui, cmd): | 13 def _dispatch(ui, cmd): |
14 assert '--quiet' in cmd | 14 assert '--quiet' in cmd |
15 try: | 15 try: |
16 req = dispatch.request(cmd, ui=ui) | 16 req = dispatch.request(cmd, ui=ui) |
17 req.earlyoptions = {'config': [], 'cwd': '', 'debugger': None, | |
18 'profile': False, 'repository': ''} | |
17 dispatch._dispatch(req) | 19 dispatch._dispatch(req) |
18 except AttributeError: | 20 except AttributeError: |
19 dispatch._dispatch(ui, cmd) | 21 dispatch._dispatch(ui, cmd) |
20 | 22 |
21 class TestMercurialCore(test_util.TestBase): | 23 class TestMercurialCore(test_util.TestBase): |