Mercurial > hg
changeset 11293:0e5ce2325795
revset: delay import of hg to avoid start-up import loops
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 05 Jun 2010 09:58:02 -0500 |
parents | 037d910734de |
children | 7b5d05e0fb1e |
files | mercurial/revset.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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")