3 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> |
3 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> |
4 # |
4 # |
5 # This software may be used and distributed according to the terms |
5 # This software may be used and distributed according to the terms |
6 # of the GNU General Public License, incorporated herein by reference. |
6 # of the GNU General Public License, incorporated herein by reference. |
7 |
7 |
8 from demandload import demandload |
8 import demandimport; demandimport.enable() |
9 from node import * |
9 from node import * |
10 from i18n import gettext as _ |
10 from i18n import gettext as _ |
11 demandload(globals(), "bisect os re sys signal imp urllib pdb shlex stat") |
11 import bisect, os, re, sys, signal, imp, urllib, pdb, shlex, stat |
12 demandload(globals(), "fancyopts ui hg util lock revlog bundlerepo") |
12 import fancyopts, ui, hg, util, lock, revlog, bundlerepo |
13 demandload(globals(), "difflib patch time help mdiff tempfile") |
13 import difflib, patch, time, help, mdiff, tempfile |
14 demandload(globals(), "traceback errno version atexit") |
14 import traceback, errno, version, atexit |
15 demandload(globals(), "archival changegroup cmdutil hgweb.server sshserver") |
15 import archival, changegroup, cmdutil, hgweb.server, sshserver |
16 |
16 |
17 class UnknownCommand(Exception): |
17 class UnknownCommand(Exception): |
18 """Exception raised if command is not in the command table.""" |
18 """Exception raised if command is not in the command table.""" |
19 class AmbiguousCommand(Exception): |
19 class AmbiguousCommand(Exception): |
20 """Exception raised if command shortcut matches more than one command.""" |
20 """Exception raised if command shortcut matches more than one command.""" |