# HG changeset patch # User Matt Mackall # Date 2010-06-05 14:58:02 # Node ID 0e5ce2325795325e41f6df9203373d2858e88f88 # Parent 037d910734dead7a9121a2875baa67c2459a5676 revset: delay import of hg to avoid start-up import loops diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -6,7 +6,7 @@ # GNU General Public License version 2 or any later version. import re -import parser, util, hg, error +import parser, util, error import match as _match elements = { @@ -410,6 +410,7 @@ def roots(repo, subset, x): return [r for r in s if r not in cs] def outgoing(repo, subset, x): + import hg # avoid start-up nasties l = getlist(x) if len(l) == 1: dest = getstring(l[0], "outgoing wants a repo path")