comparison tests/test_unaffected_core.py @ 1577:af9a3156f8ae

test: prefill more early options Mercurial 4.7 process more option earlier. We have to update the test to take than in account.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 26 Jul 2018 16:25:41 +0200
parents d55c9d0ba350
children
comparison
equal deleted inserted replaced
1576:7da8a38ff969 1577:af9a3156f8ae
14 14
15 def _dispatch(ui, cmd): 15 def _dispatch(ui, cmd):
16 assert '--quiet' in cmd 16 assert '--quiet' in cmd
17 try: 17 try:
18 req = dispatch.request(cmd, ui=ui) 18 req = dispatch.request(cmd, ui=ui)
19 req.earlyoptions = {'config': [], 'cwd': '', 'debugger': None, 19 req.earlyoptions = {
20 'profile': False, 'repository': ''} 20 'config': [],
21 'cwd': '',
22 'debugger': None,
23 'profile': False,
24 'repository': '',
25 'verbose': False,
26 'quiet': False,
27 'debug': False,
28 'traceback': False,
29 }
21 dispatch._dispatch(req) 30 dispatch._dispatch(req)
22 except AttributeError: 31 except AttributeError:
23 dispatch._dispatch(ui, cmd) 32 dispatch._dispatch(ui, cmd)
24 33
25 class TestMercurialCore(test_util.TestBase): 34 class TestMercurialCore(test_util.TestBase):