Show More
@@ -54,9 +54,7 b' from mercurial.i18n import _' | |||
|
54 | 54 | |
|
55 | 55 | from mercurial import ( |
|
56 | 56 | cmdutil, |
|
57 | commands, | |
|
58 | 57 | commandserver, |
|
59 | dispatch, | |
|
60 | 58 | error, |
|
61 | 59 | extensions, |
|
62 | 60 | osutil, |
@@ -181,6 +179,8 b' class hashstate(object):' | |||
|
181 | 179 | |
|
182 | 180 | # copied from hgext/pager.py:uisetup() |
|
183 | 181 | def _setuppagercmd(ui, options, cmd): |
|
182 | from mercurial import commands # avoid cycle | |
|
183 | ||
|
184 | 184 | if not ui.formatted(): |
|
185 | 185 | return |
|
186 | 186 | |
@@ -260,6 +260,8 b' def _newchgui(srcui, csystem):' | |||
|
260 | 260 | return chgui(srcui) |
|
261 | 261 | |
|
262 | 262 | def _loadnewui(srcui, args): |
|
263 | from mercurial import dispatch # avoid cycle | |
|
264 | ||
|
263 | 265 | newui = srcui.__class__() |
|
264 | 266 | for a in ['fin', 'fout', 'ferr', 'environ']: |
|
265 | 267 | setattr(newui, a, getattr(srcui, a)) |
@@ -439,6 +441,8 b' class chgcmdserver(commandserver.server)' | |||
|
439 | 441 | list, the client can continue with this server after completing all |
|
440 | 442 | the instructions. |
|
441 | 443 | """ |
|
444 | from mercurial import dispatch # avoid cycle | |
|
445 | ||
|
442 | 446 | args = self._readlist() |
|
443 | 447 | try: |
|
444 | 448 | self.ui, lui = _loadnewui(self.ui, args) |
@@ -486,6 +490,8 b' class chgcmdserver(commandserver.server)' | |||
|
486 | 490 | If pager isn't enabled, this writes '\0' because channeledoutput |
|
487 | 491 | does not allow to write empty data. |
|
488 | 492 | """ |
|
493 | from mercurial import dispatch # avoid cycle | |
|
494 | ||
|
489 | 495 | args = self._readlist() |
|
490 | 496 | try: |
|
491 | 497 | cmd, _func, args, options, _cmdoptions = dispatch._parse(self.ui, |
General Comments 0
You need to be logged in to leave comments.
Login now