changeset 7632 | 9626819b2e3d |
parent 7474 | b2cbced7bb50 |
child 7633 | 08cabecfa8a8 |
7631:0b2ee57dfdb1 | 7632:9626819b2e3d |
---|---|
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 i18n import _ |
8 from i18n import _ |
9 from repo import RepoError |
9 from repo import RepoError |
10 import os, sys, atexit, signal, pdb, socket, errno, shlex, time |
10 import os, sys, atexit, signal, pdb, socket, errno, shlex, time |
11 import util, commands, hg, lock, fancyopts, revlog, version, extensions, hook |
11 import util, commands, hg, lock, fancyopts, revlog, extensions, hook |
12 import cmdutil |
12 import cmdutil |
13 import ui as _ui |
13 import ui as _ui |
14 |
14 |
15 class ParseError(Exception): |
15 class ParseError(Exception): |
16 """Exception raised on errors in parsing the command line.""" |
16 """Exception raised on errors in parsing the command line.""" |
143 ui.warn(_("** unknown exception encountered, details follow\n")) |
143 ui.warn(_("** unknown exception encountered, details follow\n")) |
144 ui.warn(_("** report bug details to " |
144 ui.warn(_("** report bug details to " |
145 "http://www.selenic.com/mercurial/bts\n")) |
145 "http://www.selenic.com/mercurial/bts\n")) |
146 ui.warn(_("** or mercurial@selenic.com\n")) |
146 ui.warn(_("** or mercurial@selenic.com\n")) |
147 ui.warn(_("** Mercurial Distributed SCM (version %s)\n") |
147 ui.warn(_("** Mercurial Distributed SCM (version %s)\n") |
148 % version.get_version()) |
148 % util.version()) |
149 ui.warn(_("** Extensions loaded: %s\n") |
149 ui.warn(_("** Extensions loaded: %s\n") |
150 % ", ".join([x[0] for x in extensions.extensions()])) |
150 % ", ".join([x[0] for x in extensions.extensions()])) |
151 raise |
151 raise |
152 |
152 |
153 return -1 |
153 return -1 |