Calling ui.traceback()
Dirkjan Ochtman
dirkjan at ochtman.nl
Sun Feb 21 06:29:29 CST 2010
On Sun, Feb 21, 2010 at 07:04, Frank A. Kingswood
<frank at kingswood-consulting.co.uk> wrote:
> Hallo!
>
> In the Perfarce extension I'm calling ui.traceback() in some exception
> handlers to get some useful info when the user specifies --traceback.
> This fails on old versions of Mercurial, where traceback can be None.
How old?
> Changing the code to
>
> if ui.traceback:ui.traceback()
>
> works but I'm not sure this is the right way to handle this.
Why would it not be the right way?
Cheers,
Dirkjan
More information about the Mercurial-devel
mailing list