Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 2335:f0680b2d1d64
add ui.print_exc(), make all traceback printing central.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Mon, 22 May 2006 08:47:53 -0700 |
parents | dbdce3b99988 |
children | 11422943cf72 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun May 21 23:39:25 2006 -0700 +++ b/mercurial/localrepo.py Mon May 22 08:47:53 2006 -0700 @@ -12,7 +12,7 @@ from demandload import * demandload(globals(), "appendfile changegroup") demandload(globals(), "re lock transaction tempfile stat mdiff errno ui") -demandload(globals(), "revlog traceback") +demandload(globals(), "revlog") class localrepository(object): def __del__(self): @@ -125,8 +125,7 @@ '%s\n') % (hname, exc)) if throw: raise - if self.ui.traceback: - traceback.print_exc() + self.ui.print_exc() return True if r: if throw: