revset: delay import of hg to avoid start-up import loops
authorMatt Mackall <mpm@selenic.com>
Sat, 05 Jun 2010 09:58:02 -0500
changeset 11293 0e5ce2325795
parent 11292 037d910734de
child 11294 7b5d05e0fb1e
revset: delay import of hg to avoid start-up import loops
mercurial/revset.py
--- a/mercurial/revset.py	Fri Jun 04 23:04:31 2010 -0500
+++ b/mercurial/revset.py	Sat Jun 05 09:58:02 2010 -0500
@@ -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 @@
     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")