Mercurial > hg
comparison tests/test-devel-warnings.t @ 30520:4338f87dbf6f
dispatch: move part of callcatch to scmutil
Per discussion at 39149b6036e6 [1], we need "callcatch" in worker.py. Move
it to scmutil.py to avoid cycles.
Note that dispatch's callcatch handles some additional high-level exceptions
related to config parsing, and commands. Moving them to scmutil will make
scmutil depend on "commands" or require "_formatparse" and "_getsimilar"
(and "difflib") to be moved as well. In the worker use-case, it is forked
when config and commands are fully loaded. So it should not care about those
exceptions.
[1]: https://www.mercurial-scm.org/pipermail/mercurial-devel/2016-August/087116.html
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 24 Nov 2016 00:48:40 +0000 |
parents | e3501546f7e4 |
children | f8c9a7d2bbbf |
comparison
equal
deleted
inserted
replaced
30519:20a42325fdef | 30520:4338f87dbf6f |
---|---|
90 */hg:* in * (glob) | 90 */hg:* in * (glob) |
91 */mercurial/dispatch.py:* in run (glob) | 91 */mercurial/dispatch.py:* in run (glob) |
92 */mercurial/dispatch.py:* in dispatch (glob) | 92 */mercurial/dispatch.py:* in dispatch (glob) |
93 */mercurial/dispatch.py:* in _runcatch (glob) | 93 */mercurial/dispatch.py:* in _runcatch (glob) |
94 */mercurial/dispatch.py:* in callcatch (glob) | 94 */mercurial/dispatch.py:* in callcatch (glob) |
95 */mercurial/scmutil.py* in callcatch (glob) | |
95 */mercurial/dispatch.py:* in _runcatchfunc (glob) | 96 */mercurial/dispatch.py:* in _runcatchfunc (glob) |
96 */mercurial/dispatch.py:* in _dispatch (glob) | 97 */mercurial/dispatch.py:* in _dispatch (glob) |
97 */mercurial/dispatch.py:* in runcommand (glob) | 98 */mercurial/dispatch.py:* in runcommand (glob) |
98 */mercurial/dispatch.py:* in _runcommand (glob) | 99 */mercurial/dispatch.py:* in _runcommand (glob) |
99 */mercurial/dispatch.py:* in <lambda> (glob) | 100 */mercurial/dispatch.py:* in <lambda> (glob) |
125 */hg:* in <module> (glob) | 126 */hg:* in <module> (glob) |
126 */mercurial/dispatch.py:* in run (glob) | 127 */mercurial/dispatch.py:* in run (glob) |
127 */mercurial/dispatch.py:* in dispatch (glob) | 128 */mercurial/dispatch.py:* in dispatch (glob) |
128 */mercurial/dispatch.py:* in _runcatch (glob) | 129 */mercurial/dispatch.py:* in _runcatch (glob) |
129 */mercurial/dispatch.py:* in callcatch (glob) | 130 */mercurial/dispatch.py:* in callcatch (glob) |
131 */mercurial/scmutil.py* in callcatch (glob) | |
130 */mercurial/dispatch.py:* in _runcatchfunc (glob) | 132 */mercurial/dispatch.py:* in _runcatchfunc (glob) |
131 */mercurial/dispatch.py:* in _dispatch (glob) | 133 */mercurial/dispatch.py:* in _dispatch (glob) |
132 */mercurial/dispatch.py:* in runcommand (glob) | 134 */mercurial/dispatch.py:* in runcommand (glob) |
133 */mercurial/dispatch.py:* in _runcommand (glob) | 135 */mercurial/dispatch.py:* in _runcommand (glob) |
134 */mercurial/dispatch.py:* in <lambda> (glob) | 136 */mercurial/dispatch.py:* in <lambda> (glob) |
148 */hg:* in <module> (glob) | 150 */hg:* in <module> (glob) |
149 */mercurial/dispatch.py:* in run (glob) | 151 */mercurial/dispatch.py:* in run (glob) |
150 */mercurial/dispatch.py:* in dispatch (glob) | 152 */mercurial/dispatch.py:* in dispatch (glob) |
151 */mercurial/dispatch.py:* in _runcatch (glob) | 153 */mercurial/dispatch.py:* in _runcatch (glob) |
152 */mercurial/dispatch.py:* in callcatch (glob) | 154 */mercurial/dispatch.py:* in callcatch (glob) |
155 */mercurial/scmutil.py* in callcatch (glob) | |
153 */mercurial/dispatch.py:* in _runcatchfunc (glob) | 156 */mercurial/dispatch.py:* in _runcatchfunc (glob) |
154 */mercurial/dispatch.py:* in _dispatch (glob) | 157 */mercurial/dispatch.py:* in _dispatch (glob) |
155 */mercurial/dispatch.py:* in runcommand (glob) | 158 */mercurial/dispatch.py:* in runcommand (glob) |
156 */mercurial/dispatch.py:* in _runcommand (glob) | 159 */mercurial/dispatch.py:* in _runcommand (glob) |
157 */mercurial/dispatch.py:* in <lambda> (glob) | 160 */mercurial/dispatch.py:* in <lambda> (glob) |