Show More
@@ -33,7 +33,7 class mercurial_sink(converter_sink): | |||
|
33 | 33 | if not self.repo.local(): |
|
34 | 34 | raise NoRepo(_('%s is not a local Mercurial repo') % path) |
|
35 | 35 | except error.RepoError, err: |
|
36 |
ui. |
|
|
36 | ui.traceback() | |
|
37 | 37 | raise NoRepo(err.args[0]) |
|
38 | 38 | else: |
|
39 | 39 | try: |
@@ -43,7 +43,7 class mercurial_sink(converter_sink): | |||
|
43 | 43 | raise NoRepo(_('%s is not a local Mercurial repo') % path) |
|
44 | 44 | self.created.append(path) |
|
45 | 45 | except error.RepoError: |
|
46 |
ui. |
|
|
46 | ui.traceback() | |
|
47 | 47 | raise NoRepo("could not create hg repo %s as sink" % path) |
|
48 | 48 | self.lock = None |
|
49 | 49 | self.wlock = None |
@@ -199,7 +199,7 class mercurial_source(converter_source) | |||
|
199 | 199 | if not self.repo.local(): |
|
200 | 200 | raise error.RepoError() |
|
201 | 201 | except error.RepoError: |
|
202 |
ui. |
|
|
202 | ui.traceback() | |
|
203 | 203 | raise NoRepo("%s is not a local Mercurial repo" % path) |
|
204 | 204 | self.lastrev = None |
|
205 | 205 | self.lastctx = None |
@@ -233,7 +233,7 class svn_source(converter_source): | |||
|
233 | 233 | self.paths = {} |
|
234 | 234 | self.uuid = svn.ra.get_uuid(self.ra).decode(self.encoding) |
|
235 | 235 | except SubversionException: |
|
236 |
ui. |
|
|
236 | ui.traceback() | |
|
237 | 237 | raise NoRepo("%s does not look like a Subversion repo" % self.url) |
|
238 | 238 | |
|
239 | 239 | if rev: |
@@ -105,7 +105,7 def reposetup(ui, repo): | |||
|
105 | 105 | else: |
|
106 | 106 | ui.warn(_('failed to contact inotify server: %s\n') |
|
107 | 107 | % err[-1]) |
|
108 |
ui. |
|
|
108 | ui.traceback() | |
|
109 | 109 | # replace by old status function |
|
110 | 110 | self.status = super(inotifydirstate, self).status |
|
111 | 111 |
@@ -47,7 +47,7 def _runcatch(ui, args): | |||
|
47 | 47 | # enter the debugger when we hit an exception |
|
48 | 48 | if '--debugger' in args: |
|
49 | 49 | pdb.post_mortem(sys.exc_info()[2]) |
|
50 |
ui. |
|
|
50 | ui.traceback() | |
|
51 | 51 | raise |
|
52 | 52 | |
|
53 | 53 | # Global exception handling, alphabetically |
@@ -87,7 +87,7 def loadall(ui): | |||
|
87 | 87 | else: |
|
88 | 88 | ui.warn(_("*** failed to import extension %s: %s\n") |
|
89 | 89 | % (name, inst)) |
|
90 |
if ui. |
|
|
90 | if ui.traceback(): | |
|
91 | 91 | return 1 |
|
92 | 92 | |
|
93 | 93 | def wrapcommand(table, command, wrapper): |
@@ -61,7 +61,7 def _pythonhook(ui, repo, name, hname, f | |||
|
61 | 61 | '%s\n') % (hname, exc)) |
|
62 | 62 | if throw: |
|
63 | 63 | raise |
|
64 |
ui. |
|
|
64 | ui.traceback() | |
|
65 | 65 | return True |
|
66 | 66 | if r: |
|
67 | 67 | if throw: |
@@ -82,7 +82,7 class httprepository(repo.repository): | |||
|
82 | 82 | raise |
|
83 | 83 | except httplib.HTTPException, inst: |
|
84 | 84 | self.ui.debug(_('http error while sending %s command\n') % cmd) |
|
85 |
self.ui. |
|
|
85 | self.ui.traceback() | |
|
86 | 86 | raise IOError(None, inst) |
|
87 | 87 | except IndexError: |
|
88 | 88 | # this only happens with Python 2.3, later versions raise URLError |
General Comments 0
You need to be logged in to leave comments.
Login now