equal
deleted
inserted
replaced
6 # This software may be used and distributed according to the terms |
6 # This software may be used and distributed according to the terms |
7 # of the GNU General Public License, incorporated herein by reference. |
7 # of the GNU General Public License, incorporated herein by reference. |
8 |
8 |
9 from node import * |
9 from node import * |
10 from repo import * |
10 from repo import * |
11 from demandload import * |
|
12 from i18n import gettext as _ |
11 from i18n import gettext as _ |
13 demandload(globals(), "localrepo bundlerepo httprepo sshrepo statichttprepo") |
12 import localrepo, bundlerepo, httprepo, sshrepo, statichttprepo |
14 demandload(globals(), "errno lock os shutil util merge@_merge verify@_verify") |
13 import errno, lock, os, shutil, util |
|
14 import merge as _merge |
|
15 import verify as _verify |
15 |
16 |
16 def _local(path): |
17 def _local(path): |
17 return (os.path.isfile(util.drop_scheme('file', path)) and |
18 return (os.path.isfile(util.drop_scheme('file', path)) and |
18 bundlerepo or localrepo) |
19 bundlerepo or localrepo) |
19 |
20 |