diff hgext/convert/hg.py @ 8206:cce63ef1045b

ui: print_exc() -> traceback()
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:44 -0500
parents 6ee71f78497c
children a1a5a57efe90
line wrap: on
line diff
--- a/hgext/convert/hg.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/hgext/convert/hg.py	Sun Apr 26 16:50:44 2009 -0500
@@ -33,7 +33,7 @@
                 if not self.repo.local():
                     raise NoRepo(_('%s is not a local Mercurial repo') % path)
             except error.RepoError, err:
-                ui.print_exc()
+                ui.traceback()
                 raise NoRepo(err.args[0])
         else:
             try:
@@ -43,7 +43,7 @@
                     raise NoRepo(_('%s is not a local Mercurial repo') % path)
                 self.created.append(path)
             except error.RepoError:
-                ui.print_exc()
+                ui.traceback()
                 raise NoRepo("could not create hg repo %s as sink" % path)
         self.lock = None
         self.wlock = None
@@ -199,7 +199,7 @@
             if not self.repo.local():
                 raise error.RepoError()
         except error.RepoError:
-            ui.print_exc()
+            ui.traceback()
             raise NoRepo("%s is not a local Mercurial repo" % path)
         self.lastrev = None
         self.lastctx = None