Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 2809:1c6beafbae97
Use demandload @ syntax
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 07 Aug 2006 23:18:16 -0500 |
parents | 30f59f4a327e |
children | ca06d35af65e |
comparison
equal
deleted
inserted
replaced
2808:30f59f4a327e | 2809:1c6beafbae97 |
---|---|
8 from node import * | 8 from node import * |
9 from repo import * | 9 from repo import * |
10 from demandload import * | 10 from demandload import * |
11 from i18n import gettext as _ | 11 from i18n import gettext as _ |
12 demandload(globals(), "localrepo bundlerepo httprepo sshrepo statichttprepo") | 12 demandload(globals(), "localrepo bundlerepo httprepo sshrepo statichttprepo") |
13 demandload(globals(), "errno lock os shutil util merge@_merge") | 13 demandload(globals(), "errno lock os shutil util merge@_merge verify@_verify") |
14 | 14 |
15 def _local(path): | 15 def _local(path): |
16 return (os.path.isfile(path and util.drop_scheme('file', path)) and | 16 return (os.path.isfile(path and util.drop_scheme('file', path)) and |
17 bundlerepo or localrepo) | 17 bundlerepo or localrepo) |
18 | 18 |
225 return _merge.update(repo, node, force=True, choose=choose, | 225 return _merge.update(repo, node, force=True, choose=choose, |
226 moddirstate=False, show_stats=False) | 226 moddirstate=False, show_stats=False) |
227 | 227 |
228 def verify(repo): | 228 def verify(repo): |
229 """verify the consistency of a repository""" | 229 """verify the consistency of a repository""" |
230 import verify as _verify | |
231 return _verify.verify(repo) | 230 return _verify.verify(repo) |