hgext/convert/hg.py
changeset 8206 cce63ef1045b
parent 8112 6ee71f78497c
child 8209 a1a5a57efe90
--- 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