Comments
Patch
@@ -5,9 +5,9 @@
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
import re
-import parser, util, error, discovery, hbisect, phases
+import parser, util, error, hbisect, phases
import node
import heapq
import match as matchmod
from i18n import _
@@ -1370,9 +1370,11 @@ def outgoing(repo, subset, x):
"""``outgoing([path])``
Changesets not found in the specified destination repository, or the
default push location.
"""
- import hg # avoid start-up nasties
+ # Avoid cycles.
+ import discovery
+ import hg
# i18n: "outgoing" is a keyword
l = getargs(x, 0, 1, _("outgoing takes one or no arguments"))
# i18n: "outgoing" is a keyword
dest = l and getstring(l[0], _("outgoing requires a repository path")) or ''
@@ -31,9 +31,9 @@ these may expose other cycles.
stdlib: parser
relative: error, merge, util
mercurial/revset.py mixed imports
stdlib: parser
- relative: discovery, error, hbisect, phases, util
+ relative: error, hbisect, phases, util
mercurial/templater.py mixed imports
stdlib: parser
relative: config, error, templatefilters, templatekw, util
mercurial/ui.py mixed imports